<template>
    <div>
    
    
        <div class='meal_all_box' style="min-height: 800px;">
            <div class='meal_left_box'>
    
                <div class="meal_top_box">
    
                    <div class="margin_fill">
    
                        <a-input-number v-model="telephone" style="width: 230px" placeholder="请输入手机号" />
                        <a-button type="primary" style="margin:0 0 0 5px ;background:#ED6A1F;border:none" @click="checkFunc(false)">查找</a-button>
                        <a-button type='cancel' style='margin:0 10px;' @click='mealSettingFunc'> 点餐设置 </a-button>
                        <a-button type='cancel' @click='ticketMachineFunc'> 小票机管理 </a-button>
    
                    </div>
    
                    <div class="margin_fill" style='flex-direction:column;align-items:start;' v-if="getOftenList.length">
                        <div class="left_word_box" style='flex-shrink:0;'>
                            <!-- <span class="require_fill_star" style='visibility:hidden;'>*</span> -->
                            <span class='line_header_14'>常用用户</span>
                        </div>
                        <div class="often_mobile_box">
                            <div v-for="(item,index) in getOftenList" :key="index" :class='currentOftenUseIndex==index?"select_mobile_item":"un_select_mobile_item"' @click="selectOneOftenFunc(index,item.phone)">
                                <span>{{item.phone}}</span>
                                <span style="color: rgba(0, 0, 0, 0.45);margin-left:7px;" class="iconfont icon-guanbi" @click.stop="deleteOftenUseFunc(item.id)"></span>
                            </div>
    
                        </div>
    
    
    
                    </div>
    
    
                    <div class="margin_fill" v-if='currentUserSelect'>
                        <div class="select_user_box">
                            <ul>
                                <li>
                                    <div class="check_left" style='margin-left:20px;'>
                                        <div>
                                            <img style="width: 50px; height: 50px; border-radius: 25px" :src="currentUserInfo.user.headImgurl" alt="" />
                                        </div>
    
                                        <div style="margin-left: 16px">
                                            <div style="display: flex">
                                                <span style='color:#999999'>姓名：</span>
                                                <span style="font-weight: 700;color:#000000">{{ currentUserInfo.user.username }}</span>
                                            </div>
                                            <div style="display: flex">
                                                <span style='color:#999999'>手机：</span>
                                                <span style="font-weight: 700;color:#000000">{{ currentUserInfo.user.phone }}</span>
                                            </div>
                                        </div>
                                    </div>
    
                                    <!-- v-if="showBuyBtn" -->
                                    <div class="gold_box">
                                        <span style="border: none; color: #ed6a1f" @click="chargeVipFunc(currentUserInfo.user.id)">
                  开通会员
                </span>
                                        <span style="margin-top:10px;border: none; color: #ed6a1f;margin-right:10px;" @click="goldExchangeClick(currentUserInfo.user.id)">
                  金豆兑换
                </span>
                                    </div>
    
                                </li>
    
    
    
                            </ul>
    
                        </div>
                    </div>
    
    
    
                    <div class="margin_fill" style='flex-direction:column;align-items:start;'>
                        <div class="left_word_box" style='flex-shrink:0;'>
    
                            <span class='line_header_18'>就餐方式<span class="require_fill_star" >*</span></span>
                        </div>
    
                        <div class="eat_methods_box">
                            <div v-for="(item,index) in eatMethodsList" :key="index" :class='currentEatMethodsIndex==index?"select_eat_item":"un_select_eat_item"' @click="selectEatMethodsFunc(index,item)">
                                <span>{{item.name}}</span>
                                <span v-if='currentEatMethodsIndex==index' style='position:absolute;right:0;bottom:0;right:-3px;bottom:-8px;' class="iconfont icon-jiaobiaoxuanzhong right_check"></span>
    
                            </div>
    
                        </div>
    
                    </div>
    
    
    
    
    
                    <div class="margin_fill" style='flex-direction:column;align-items:start;' v-if="eatMethodsType==3">
                        <div class="left_word_box" style='flex-shrink:0;'>
    
                            <span class='line_header_18'>桌号<span class="require_fill_star" >*</span></span>
                        </div>
    
                        <div class="table_num_box">
                            <div v-for="(item,index) in tableNumList" :key="index" :class='currentTableNumIndex==index?"select_table_num_item":"un_select_table_num_item"' @click="selectTableNumFunc(index,item)">
                                <span> {{item.groupName}}{{item.deskName}}</span>
                                <span v-if='currentTableNumIndex==index' style='position:absolute;right:0;bottom:0;right:-3px;bottom:-8px;' class="iconfont icon-jiaobiaoxuanzhong right_check"></span>
    
                            </div>
    
                        </div>
    
    
    
                    </div>
    
                </div>
    
                <div class="meal_bottom_box" v-if="car_total_count">
    
    
                    <div class="car_box">
                        <!-- <div class="car_title_box">
                <div>已选商品</div>
                <div>
                  <span class="iconfont icon-shanchu"></span>
                  <span>清空</span>
                </div>
              </div> -->
                        <div class="margin_fill" style='flex-direction:column;align-items:start;'>
                            <div class="left_word_box" style='flex-shrink:0;'>
    
                                <span class='line_header_18'>已选商品</span>
                            </div>
    
    
                        </div>
    
    
                        <div class="car_shop_cont">
                            <div v-for="(item, index) in mealList" :key="index">
                                <!-- v-if="item2.count" -->
                                <div v-if="item2.count">
                                    <div class="car_shop_info" v-for="(item2, index2) in item.itemList" :key="index2" :style="{borderBottom:index2!=item.itemList.length-1?'1px solid #f2f2f2':''}">
    
                                        <div style='flex:1;'>
                                            <img :src='item2.image' style='width:41px;height:41px;' />
                                        </div>
                                        <div style='flex:2;margin:0 5px;'>
                                            <div style="flex:3;color:000000;">{{item2.title}}</div>
                                            <div v-if="item2.dishFlavorStr" style="color:#c1272d;">({{item2.dishFlavorStr}})</div>
                                        </div>
                                        <span style="flex:1;color:#c1272d;">￥{{item2.price}}</span>
                                        <span style="flex:1" v-if="eatMethodsType==4">￥{{item2.packingFee*item2.count}}</span>
    
    
                                        <div v-if='parseInt(item2.unitFlag)!=2' style="flex:1">
    
                                            <div class="car_meal_input_ope">
                                                <div class='car_input_ope_left_btn' @click="minusCarMealFunc(index, index2)">
                                                    <a-icon class="" type="minus" />
                                                </div>
    
                                                <input @input="value => changeTitle(value, index, index2)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" :value="item2.count" style="width: 42px;" class="input_border" placeholder="请输入数量" />
                                                <div class="car_input_ope_right_btn" @click="addCarMealFunc(index, index2)">
                                                    <a-icon type="plus" />
                                                </div>
    
                                            </div>
    
                                        </div>
    
    
                                        <div style='flex:1' v-if='parseInt(item2.unitFlag)==2'>
    
                                            <div style='width:94px;'>{{item2.customWeight}}千克</div>
    
    
                                        </div>
    
    
    
    
                                        <span v-if="eatMethodsType==4" style="flex:1;text-align: right;margin:0 20px;">￥{{(item2.price*item2.count + item2.packingFee*item2.count).toFixed(2)}}</span>
                                        <span v-else style="flex:1;text-align: right;margin:0 20px;">￥{{(item2.price*item2.count).toFixed(2)}}</span>
                                        <span @click='deleteCarItem(index,index2)' class='iconfont icon-shanchu1' style='flex:1;font-size:14px;'> </span>
    
                                    </div>
    
                                    <div v-if="item2.realDifferentGuideList">
                                        <div v-for="(item2, index2) in item.itemList" :key="index2">
    
                                            <div class="car_shop_info" v-for="(item3, index3) in item2.realDifferentGuideList" :key="index3" :style="{borderBottom:index2!=item2.realDifferentGuideList.length-1?'1px solid #f2f2f2':''}">
    
                                                <div style='flex:1;'>
                                                    <img :src='item2.image' style='width:41px;height:41px;' />
                                                </div>
                                                <div style='flex:2;margin:0 5px;'>
                                                    <div style="flex:3;color:000000;">{{item2.title}}</div>
                                                    <div style="color:#c1272d;">({{item3.guideName}})</div>
                                                </div>
                                                <span style="flex:1;color:#c1272d;">￥{{item2.price}}</span>
                                                <span style="flex:1" v-if="eatMethodsType==4">￥{{item2.packingFee*item2.count}}</span>
    
    
                                                <div v-if='parseInt(item2.unitFlag)!=2' style="flex:1">
    
                                                    <div class="car_meal_input_ope">
                                                        <div class='car_input_ope_left_btn' @click="minusCarGuideMealFunc(index, index2,index3)">
                                                            <a-icon class="" type="minus" />
                                                        </div>
    
                                                        <input @input="value => changeTitle(value, index, index2)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" :value="item3.guideCount" style="width: 42px;" class="input_border" placeholder="请输入数量"
                                                        />
                                                        <div class="car_input_ope_right_btn" @click="addCarGuideMealFunc(index, index2,index3)">
                                                            <a-icon type="plus" />
                                                        </div>
    
                                                    </div>
    
                                                </div>
    
    
                                                <div style='flex:1' v-if='parseInt(item2.unitFlag)==2'>
    
                                                    <div style='width:94px;'>{{item3.guideCount }}千克</div>
    
    
                                                </div>
    
    
    
    
                                                <span v-if="eatMethodsType==4" style="flex:1;text-align: right;margin:0 20px;">￥{{(item2.price*item3.guideCount + item2.packingFee*item2.count).toFixed(2)}}</span>
                                                <span v-else style="flex:1;text-align: right;margin:0 20px;">￥{{(item2.price*item3.guideCount).toFixed(2)}}</span>
                                                <span @click='deleteGuideCarItem(index,index2,index3)' class='iconfont icon-shanchu1' style='flex:1;font-size:14px;'> </span>
    
                                            </div>
                                        </div>
    
                                    </div>
    
    
    
    
    
    
    
    
    
    
                                </div>
    
    
                            </div>
    
    
    
    
                        </div>
    
    
    
    
    
    
    
    
    
    
    
    
    
                        <div class="car_cal_price">
                            <div class="total_box">
                                <span>共计({{car_total_count}}个商品)</span>
                                <!-- <span><span style="color:red">{{car_total_count}}</span>个商品</span> -->
                            </div>
                            <div class="total_box">
                                <!-- <div style="margin-bottom:7px;visibility:hidden;">测试</div> -->
                                <div>
    
                                    <span> 合计 (CNY)：</span>
    
                                    <span style="color:#C1272D;font-size:24px;">¥ {{carl_total_price.toFixed(2)}}</span>
                                </div>
                            </div>
    
                        </div>
    
    
                    </div>
                    <div class="margin_fill" style='display:flex;justify-content:center;margin:0;'>
                        <div style="
                width: 127px;
                height: 40px;
                font-size: 18px;
                background-color: #1F58BC;
                border:1px solid #1F58BC;
                font-size: 14px;
               flex:1;
               display:flex;align-items:center;justify-content:center;color:white;
            " @click="clearClick">
                            清空
                        </div>
                        <div style="
                width: 127px;
                height: 40px;
                font-size: 18px;
                border:1px solid #ED6A1F;
                background-color: #ED6A1F;
                font-size: 14px;
              flex:1; display:flex;align-items:center;justify-content:center;color:white;
            " @click="submitClick">
                            下一步
                        </div>
                    </div>
    
                </div>
    
    
    
    
    
    
    
    
    
            </div>
            <div class='meal_right_box'>
                <div class='cate_meal_box' id="tab_nav">
                    <div :class="index==currentIndex?'select_cate_item':'unselect_cate_item'" v-for="(item, index) in mealList" :key="index" @click='cateClick(index)'>
                        <span style='flex-shrink:0;'>{{ item.name }}</span>
                    </div>
                </div>
    
                <div v-if='index==currentIndex'>
                    <div class="meal_list" v-for="(item, index) in mealList" :key="index">
                        <div class="meal_box">
    
                            <div v-for="(item2, index2) in item.itemList" :key="index2" style="width: 167px;margin-bottom:7px;" @click='shopItemClick(index,index2,item2)'>
                                <div class="meal_content_box" style="background:#f2f2f2;width: 160px;margin-right:7px">
                                    <div class="meal_img_box">
                                        <img @dragstart.prevent style="width:158px;height:158px;border-top-left-radius: 10px;border-top-right-radius: 10px;" :src="item2.image" alt="" />
                                        <img v-if="item2.unitFlag==1&&item2.num==0" class="sale_out_img" src="http://feiyangimage.oss-cn-shanghai.aliyuncs.com/sale_out_gray_new.png" alt="">
                                        <img v-if="item2.unitFlag==2&&item2.weight==0" class="sale_out_img" src="http://feiyangimage.oss-cn-shanghai.aliyuncs.com/sale_out_gray_new.png" alt="">
                                    </div>
    
                                    <div class='shop_title'>
                                        <span class='title_de'> {{ item2.title }}</span>
                                    </div>
    
                                    <div style="display:flex;flex-direction:column">
                                        <div class="price_guide_box">
                                            <span>¥{{ item2.price }}</span>
    
                                            <span v-if="item.id!=9999&&item2.dishAttrList!=null&&item2.num!=0&&item2.dishAttrList.length!=0">选规格</span>
                                            <span v-if="item.id==9999&&item2.surplusUse>0">剩余次数{{item2.surplusUse}}</span>
                                            <span v-if="item.id==9999&&item2.surplusUse<=0">剩余次数0</span>
    
    
                                        </div>
    
                                    </div>
                                </div>
                            </div>
    
                        </div>
                    </div>
                </div>
    
            </div>
        </div>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        <div class="frequently_toast_box" v-if="frequentlyToastShow"></div>
    
        <!-- 查找用戶 -->
        <div class="toast_box" v-if="addShow" @click.self="hide" @touchmove.prevent @mousewheel.prevent>
            <div class="add_toast_box">
                <div class="add_top">
                    <span style="font-size: 16px; font-weight: 700">查找用户</span>
                    <span @click="closeBtnClick"><a-icon type="close" /></span>
                </div>
    
                <div class="add_bottom">
                    <ul>
                        <li>
                            <div class="check_left">
                                <div>
                                    <img style="width: 50px; height: 50px; border-radius: 25px" :src="currentUserInfo.user.headImgurl" alt="" />
                                </div>
    
                                <div style="margin-left: 16px">
                                    <div style="display: flex">
                                        <span>姓名：</span>
                                        <span style="font-weight: 700">{{ currentUserInfo.user.username }}</span>
                                    </div>
                                    <div style="display: flex">
                                        <span>手机：</span>
                                        <span style="font-weight: 700">{{ currentUserInfo.user.phone }}</span>
                                    </div>
                                </div>
                            </div>
                            <div class="check_right">
                                <span style="border: none; color: #7bb0e8" @click="addOftenUseFunc(currentUserInfo.user.id)">
                  {{oftenText}}
                </span>
                                <span style="color: transparent">x</span>
                            </div>
                        </li>
    
    
                        <div style="
                padding: 10px 30px;
                border-top: 1px solid #eee;
                text-align: right;
              ">
                            <a-button @click="closeBtnClick">取消</a-button>
                            <a-button class='cle-box' type="primary" @click="sureUserBtn()">
                                确认
                            </a-button>
                        </div>
                    </ul>
    
    
                </div>
            </div>
        </div>
    
    
        <!-- <a-modal v-model="goldExchangeShow" title="金豆兑换" ok-text="兑换" cancel-text="取消" @ok="onSure">
            <div class="toast_container_box">
                <span class="left_word" style='flex-shrink:0;'>卡号：</span>
                <a-input v-model="cardNo" class="right_input" placeholder="请输入卡号" />
            </div>
    
    
    
            <div class="toast_container_box mg24">
                <span class="left_word" style='flex-shrink:0;'>密码：</span>
                <a-input v-model="cardPassword" class="right_input" placeholder="请输入密码" />
    
            </div>
        </a-modal> -->
    
<!--      
        <a-modal :width='800' v-model="buyShow" title="购买会员卡" @ok="handleOk" @cancel="onCropperCancel" ok-text="购买" cancel-text="取消">
    
            <div class="margin_fill" style='flex-direction:column;align-items:start;margin:0;'>
                <div class="left_word_box" style='flex-shrink:0;'>
    
                    <span class='line_header_18'>选择会员卡</span>
                </div>
    
                <div>
                    <ul class='card_select_ul'>
                        <li class='card_select_li' style='background:#fafafa;'>
                            <div style="width:60px"></div>
                            <div>购买状态</div>
                            <div>会员卡名称</div>
                            <div style='flex:2'>时间</div>
                            <div>有效期(月)</div>
                            <div>状态</div>
                            <div>售价(元)</div>
                            <div>支付折扣</div>
    
                        </li>
    
                        <li v-for="(item,index) in onlineData" :key='index' class='card_select_li' :style="{background:parseInt(item.buyFlag)==1?'rgb(245,245,245)':'white'}">
    
                            <a-radio v-if='parseInt(item.buyFlag)==1' style='width:60px;text-align:center;' :checked='parseInt(item.buyFlag)==1?true:false' :disabled='parseInt(item.buyFlag)==1?true:false'></a-radio>
                            <a-radio v-if='parseInt(item.buyFlag)!=1' style='width:60px;text-align:center;' :checked='index== currentRadioIndex' @change="onRadioChange2(index)"></a-radio>
    
    
                            <div>{{item.buyFlag==0?'未购买':'已购买'}}</div>
                            <div>{{item.name}}</div>
                            <div style='flex:2'>{{item.createTime | formatDate}}</div>
                            <div>{{item.validMonth}}</div>
                            <div>{{item.status}}</div>
                            <div>{{item.cardPrice}}</div>
                            <div>{{item.payRate*100/10}}折</div>
    
    
                        </li>
                    </ul>
                </div>
    
    
            </div>
    
            <div class="margin_fill" style='flex-direction:column;align-items:start;'>
                <div class="left_word_box" style='flex-shrink:0;'>
    
                    <span class='line_header_18'>支付方式</span>
                </div>
    
                <div class="table_num_box">
                    <div v-for="(item,index) in buyCardPayList" :key="index" :class='currentBuyCardIndex==index?"select_normal_item":"un_select_normal_item"' @click="selectBuyCardFunc(index,item)">
                        <span>  {{item.name}}</span>
                        <span v-if='currentBuyCardIndex==index' style='position:absolute;right:0;bottom:0;right:-3px;bottom:-8px;' class="iconfont icon-jiaobiaoxuanzhong right_check"></span>
    
                    </div>
    
                </div>
    
    
    
    
            </div>
    
            <div class="margin_fill" style='border-bottom:1px solid #f2f2f2;flex-direction:column;align-items:start;' v-if="currentBuyCardPayId==1">
    
                <div class="left_word_box" style='flex-shrink:0;'>
    
                    <span class='line_header_18'>用户付款码标识<span class="require_fill_star">*</span></span>
                </div>
                <a-textarea class='textarea_bg' ref='authCodeNameBuyCard' style="width: 100%;" placeholder="请用扫码枪扫用户付款码,注意务必将鼠标光标置于该输入框内,并处于闪烁状态" allow-clear v-model="openVipAuthCodeChange" />
    
            </div>
    
    
    
        </a-modal> -->
    
    
        <!-- 添加规格 -->
        <!-- 添加规格 -->
        <div class="guide_toast_box" v-if="addGuideShow" @click.self="hideGuide" @touchmove.prevent @mousewheel.prevent>
            <div class="add_toast_box">
                <div class="add_top">
                    <span style="font-size: 16px; font-weight: 700">添加</span>
                    <span @click="closeGuideBtnClick"><a-icon type="close" /></span>
                </div>
                <div class="add_content_box">
    
                    <div v-for="(item,index) in currentAttributeList " :key="index">
                        <div class="tan_kuangtwo">
                            <div class="num_box">{{item.attrName}}</div>
                        </div>
    
                        <div class="tag_tag_box">
    
                            <div v-for="(item2,index2) in item.attrValueList" :key="index2">
    
                                <div @click="click_oneId(index,index2,item2)" :class="item2.tempSelect==true? 'tanactive tag_nei' : 'tanunactive tag_nei'">
                                    <span>{{item2.attrValue}}</span>
                                    <span v-if='item2.tempSelect==true' style='position:absolute;right:0;bottom:0;right:-3px;bottom:-8px;' class="iconfont icon-jiaobiaoxuanzhong right_check"></span>
                                </div>
    
                            </div>
                        </div>
                    </div>
                    <div class="tan_kuangtwo">
                        <div class="num_box">{{parseInt(mealList[currentLevel1].itemList[currentLevel2].unitFlag)!=2?'数量':'重量'}}</div>
                    </div>
    
    
                    <div class="meal_input_ope" v-if='parseInt(mealList[currentLevel1].itemList[currentLevel2].unitFlag)!=2'>
    
                        <div class='input_ope_left_btn' @click="minusTempMealFunc(currentLevel1, currentLevel2)">
                            <a-icon class="" type="minus" />
                        </div>
                        <!-- 规格类 数量 guideInputCount-->
                        <input v-if='currentAttributeList.length' @input="value => changeTitle(value, currentLevel1, currentLevel2)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" :value='currentGuideCount' :ref="'standardKey' + mealList[currentLevel1].itemList[currentLevel2].id"
                            class="toast_input_border toast_count_input" placeholder="规格数量" />
                        <!-- 非规格类 数量-->
                        <input v-if='!currentAttributeList.length' @input="value => changeTitle(value, currentLevel1, currentLevel2)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" :value="mealList[currentLevel1].itemList[currentLevel2].tempCount?mealList[currentLevel1].itemList[currentLevel2].tempCount:1"
                            :ref="'standardKey' + mealList[currentLevel1].itemList[currentLevel2].id" class="toast_input_border toast_count_input" placeholder="请输入数量" />
    
    
                        <div class="input_ope_right_btn" @click="addTempMealFunc(currentLevel1, currentLevel2)">
                            <a-icon styel="font-size:14px;" type="plus" />
                        </div>
    
                    </div>
    
                    <div class="meal_input_ope" v-if='parseInt(mealList[currentLevel1].itemList[currentLevel2].unitFlag)==2'>
    
                        <!-- :ref="'weightKey' + mealList[currentLevel1].itemList[currentLevel2].id" -->
    
                        <!-- 规格类 重量-->
                        <input v-if='currentAttributeList.length' ref='inputWeightRef' @input="value => changeGuideWeightTitle(value, currentLevel1, currentLevel2)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" :value="currentGuideWeight"
                            class="toast_weight_input_border toast_weight_input" placeholder="请输入重量" />
    
                        <!-- 非规格类 重量-->
                        <input v-if='!currentAttributeList.length' ref='inputWeightRef' @input="value => changeWeightTitle(value, currentLevel1, currentLevel2)" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" :value="mealList[currentLevel1].itemList[currentLevel2].tempWeight"
                            class="toast_weight_input_border toast_weight_input" placeholder="请输入重量" />
    
                    </div>
    
    
                </div>
    
                <div class="add_choice_bottom">
                    <div class='choice_btn' @click="sureGuideBtn()">选好了</div>
    
    
                </div>
            </div>
        </div>
    
    
        <div class="guide_toast_box" v-if="submitShow" @click.self="hideGuide" @touchmove.prevent @mousewheel.prevent>
            <div class="add_toast_box" style='width:1050px;'>
    
    
                <div class="add_top">
                    <span style="font-size: 16px; font-weight: 700">确认结算</span>
                    <span @click="closeGuideBtnClick"><a-icon type="close" /></span>
                </div>
    
                <div class="add_all_box">
                    <div class="add_content_left_box" style='margin-right:10px;'>
    
    
    
                        <div class="margin_fill" style='padding:0 10px 15px 10px;border-bottom:1px solid #f2f2f2;flex-direction:column;align-items:start;'>
                            <div class="left_word_box" style='flex-shrink:0;'>
    
                                <span class='line_header_18'>优惠券</span>
                            </div>
    
                            <div class="table_num_box" v-if='couponList.length'>
                                <div v-for="(item,index) in couponList" :key="index" :class='currentVoucherIndex==index?"select_normal_item":"un_select_normal_item"' @click="selectVoucherFunc(index,item)">
                                    <span> {{item.udcId==0?item.name:('满' + item.exceedMoney + '减' + item.discountsMoney + '元')}}</span>
                                    <span v-if='currentVoucherIndex==index' style='position:absolute;right:0;bottom:0;right:-3px;bottom:-8px;' class="iconfont icon-jiaobiaoxuanzhong right_check"></span>
    
                                </div>
    
                            </div>
    
                            <div class="table_num_box" v-if='!couponList.length'>
                                暂无优惠券
    
                            </div>
    
    
    
                        </div>
    
    
                        <div class="margin_fill" style='padding:0 10px 15px 10px;border-bottom:1px solid #f2f2f2;flex-direction:column;align-items:start;'>
                            <div class="left_word_box" style='flex-shrink:0;'>
    
                                <span class='line_header_18'>金豆 (共{{hasGoldCount}}个,本单最高可用<span style='color:red;'>{{parseInt((carl_total_price - allTotalNoJoinVipPrice)*fyproBenefitItemRate*100)}}</span>)</span>
                            </div>
    
                            <div class="table_num_box input_par" style='width:100%;'>
                                <!-- height为43不是41，因为有上下两边框，各为1" -->
                                <a-input-number :precision="0" :max="inputGoldMax" v-model="inputGoldCountChange" :disabled='(currentVoucherIndex==-1&&currentVipIndex==-1)?false:true' style="flex:auto;margin-right:6px;height:43px;" placeholder="请输入金豆" />
    
                            </div>
    
                        </div>
    
    
    
                        <div class="margin_fill" style='padding:0 10px 15px 10px;border-bottom:1px solid #f2f2f2;flex-direction:column;align-items:start;'>
                            <div class="left_word_box" style='flex-shrink:0;'>
    
                                <span class='line_header_18'>会员折扣</span>
                            </div>
    
                            <div class="table_num_box" v-if='useVipDiscountList.length'>
                                <div v-for="(item,index) in useVipDiscountList" :key="index" :class='currentVipIndex==index?"select_normal_item":"un_select_normal_item"' @click="selectVipFunc(index,item)">
                                    <span>  {{(item.name*10).toFixed(1)}}折</span>
                                    <span v-if='currentVipIndex==index' style='position:absolute;right:0;bottom:0;right:-3px;bottom:-8px;' class="iconfont icon-jiaobiaoxuanzhong right_check"></span>
    
                                </div>
    
                            </div>
                            <div class="table_num_box" v-if='!useVipDiscountList.length'>
                                暂无会员折扣
    
                            </div>
    
    
    
                        </div>
    
                        <div v-if='manDiscountFlag==1' class="margin_fill" style='padding:0 10px 15px 10px;border-bottom:1px solid #f2f2f2;flex-direction:column;align-items:start;'>
                            <div class="left_word_box" style='flex-shrink:0;'>
    
                                <span class='line_header_18'>人工减免</span>
                            </div>
    
                            <div class="table_num_box input_par" style='width:100%;'>
                                <!-- 不与任何冲突，所有优惠计算完毕之后，再在应付金额后面减免 -->
                                <a-input-number :precision="0" v-model="manDiscountAmount" style="flex:auto;margin-right:6px;height:43px;" placeholder="请输入减免金额" />
    
                            </div>
    
                        </div>
                        <div class="margin_fill" style='padding:0 10px 15px 10px;border-bottom:1px solid #f2f2f2;flex-direction:column;align-items:start;'>
                            <div class="left_word_box" style='flex-shrink:0;'>
    
                                <span class='line_header_18'>支付方式</span>
                            </div>
    
                            <div class="table_num_box">
                                <div v-for="(item,index) in payMethodsList" :key="index" :class='currenPayMethodsIndex==index?"select_normal_item":"un_select_normal_item"' @click="selectPayMethodsFunc(index,item)">
                                    <span>{{item.payTypeName}}</span>
                                    <span v-if='currenPayMethodsIndex==index' style='position:absolute;right:0;bottom:0;right:-3px;bottom:-8px;' class="iconfont icon-jiaobiaoxuanzhong right_check"></span>
    
                                </div>
    
                            </div>
    
    
    
                        </div>
                        <div class="margin_fill" style='padding:0 10px 15px 10px;border-bottom:1px solid #f2f2f2;flex-direction:column;align-items:start;' v-if="payMethods==6">
    
                            <div class="left_word_box" style='flex-shrink:0;'>
    
                                <span class='line_header_18'>用户付款码标识<span class="require_fill_star">*</span></span>
                            </div>
                            <a-textarea class='textarea_bg' ref='authCodeName' style="width: 100%;" placeholder="请用扫码枪扫用户付款码,注意务必将鼠标光标置于该输入框内,并处于闪烁状态" allow-clear v-model="authCodeChange" />
                            <!-- <input ref='authCodeName' style="width: 530px" placeholder="请用扫码枪扫用户付款码,注意务必将鼠标光标置于该输入框内,并处于闪烁状态" allow-clear v-model="authCodeChange"
                                    /> -->
                        </div>
    
    
                        <div class="margin_fill" style='padding:0 10px 15px 10px;border-bottom:1px solid #f2f2f2;flex-direction:column;align-items:start;' v-if="payMethods==5">
                            <div class="left_word_box" style='flex-shrink:0;'>
    
                                <span class='line_header_18'>其他方式<span class="require_fill_star">*</span></span>
                            </div>
                            <a-textarea style="width: 100%;" placeholder="请输入具体方式" allow-clear v-model="cusPayMethods" />
                        </div>
    
    
    
    
    
    
    
    
                    </div>
                    <div class="add_content_right_box">
    
                        <div class='right_top_box'>
                            <div class='margin_fill'>
                                <!-- <span class='width_138'> 用户信息</span> -->
                                <div class="check_left">
                                    <div>
                                        <img style="width: 50px; height: 50px; border-radius: 25px" :src="currentUserInfo.user.headImgurl" alt="" />
                                    </div>
    
                                    <div style="margin-left: 16px">
                                        <div style="display: flex">
                                            <span class='color_999'>姓名：</span>
                                            <span class='color_000' style="font-weight: 700">{{ currentUserInfo.user.username }}</span>
                                        </div>
                                        <div style="display: flex">
                                            <span class='color_999'>手机：</span>
                                            <span class='color_000' style="font-weight: 700">{{ currentUserInfo.user.phone }}</span>
                                        </div>
                                    </div>
                                </div>
    
                            </div>
    
                            <div class='margin_fill ' style='margin:10px 0 0 0 ;'>
                                <span class='width_138 color_999'>订单金额:</span>
                                <span style="color:#1a1a1a;font-size:18px;">¥ {{carl_total_price.toFixed(2)}}</span>
                            </div>
                            <div class='margin_fill ' style='margin:10px 0 0 0 ;'>
                                <span class='width_138 color_999'>优惠券抵扣:</span>
                                <span style="color:#c1272d;font-size:18px;">¥ {{currentDiscountMoney}}</span>
                            </div>
                            <div class='margin_fill ' style='margin:10px 0 0 0 ;'>
                                <span class='width_138 color_999'>金豆抵扣:</span>
                                <span style="color:#c1272d;font-size:18px;">¥ {{inputGoldCount/100}}</span>
                            </div>
                            <div class='margin_fill ' style='margin:10px 0 0 0 ;'>
                                <span class='width_138 color_999'>会员折扣:</span>
                                <span style="color:#c1272d;font-size:18px;">¥ {{((1-currentCardRate)*carl_total_price).toFixed(2)}}</span>
                            </div>
                            <div class='margin_fill ' style='margin:10px 0 0 0 ;' v-if='manDiscountFlag==1'>
                                <span class='width_138 color_999'>人工减免:</span>
                                <span style="color:#c1272d;font-size:18px;">¥ {{manDiscountAmount}}</span>
                            </div>
                            <div class='margin_fill' style='color:#c1272d;margin-top:30px;'>
                                <span class='width_138 '> 应付金额:</span>
                                <span style="font-size:22px;font-weight:bold">¥ {{(carl_total_price - manDiscountAmount - currentDiscountMoney - inputGoldCount/100 - (1 - currentCardRate)*carl_total_price).toFixed(2)}}</span>
                            </div>
    
                        </div>
    
                        <!-- add_guide_bottom -->
                        <div class="toast_choice">
                            <div class='choice_cancel' @click="closeGuideBtnClick">
                                取消
                            </div>
                            <div class='choice_sure' @click="finalDealFunc()">
                                确认
                            </div>
    
    
    
                        </div>
                    </div>
                </div>
    
    
    
            </div>
    
        </div>
    </div>
</template>

<script>
import {
   
  getStorePayTypeListAPI,
    GETSTOREINFOAPI,
    getStoreBindPhoneListAPI, // 获取店铺绑定手机号列表
    getStoreClassifyListAndItemForEatPCAPI,
    getStoreDeskListForOrderAPI,
    getUserAssetsGoldAPI, // 获取用户金豆
    saveRechargeAPI,
    storeWebCashierAPI,
    wxBTOCPayForAnnualCardAPI,
    getAllCardListForStoreWebCaisherAPI,
    deleteStoreBindPhoneAPI,
    getStoreAndBranchInfoAPI,
    wxBTOCPayForGoodsAPI,
    getAllCardItemListForOneStoreAppletsAPI,
    addStoreBindPhoneAPI,
    checkIsBuyStoreAnnualCardAPI,
    checkUserAPI,
    getCardListAPI,
} from "../../api/index.js";
export default {
    data() {
        return {


            manDiscountFlag: '', // 1人工减免开启状态  0人工减免关闭状态
            allTotalNoJoinVipPrice: 0,
            cardNo: "",
            cardPassword: "",
            goldExchangeShow: false,
            manDiscountAmount: 0,
            currentGuideWeight: 0,
            currentGuideCount: 0,
            guideInputCount: 0,
            currentUnitFlag: '', // 当前商品对应的是按重量还是按数量
            currentRadioIndex: -1,
            currentRadioChecked: false,
            openVipAuthCodeChange: '',
            payMethodsList: [],




            buyCardPayList: [{ id: 1, name: '微信收款码' },
                // { id: 16, name: '现金' }
            ],
            buyCardId: '',
            addCouponWidth: 1180,
            onlineData: [],

            columns: [{
                    title: "购买状态",
                    dataIndex: "buyFlag",
                    key: "buyFlag",
                    // width: 120,
                    ellipsis: false, // 换行
                    scopedSlots: { customRender: "buyFlag" }
                },
                {
                    title: "会员卡名称",
                    dataIndex: "name",
                    key: "name",
                    // width: 120,
                    ellipsis: false // 换行
                },

                {
                    title: "时间",
                    dataIndex: "createTime",
                    key: "createTime",
                    ellipsis: false,
                    scopedSlots: { customRender: "timeTransform" }
                },
                {
                    title: "有效期(月)",
                    dataIndex: "validMonth",
                    key: "validMonth",
                    // scopedSlots: { customRender: "timeTransform" },
                    ellipsis: false // 换行
                },
                {
                    title: "状态",
                    dataIndex: "status",
                    key: "status",
                    scopedSlots: { customRender: "status" },
                    ellipsis: false
                },
                {
                    title: "售价(元)",
                    dataIndex: "cardPrice",
                    key: "cardPrice",
                    ellipsis: false
                },
                {
                    title: "支付折扣",
                    dataIndex: "payRate",
                    key: "payRate",
                    scopedSlots: { customRender: "payRate" },
                    ellipsis: false
                },
                // {
                //   title: "总销量",
                //   dataIndex: "totalSaleNum",
                //   key: "totalSaleNum",
                //   ellipsis: true
                // },
                // {
                //   title: "线上销售",
                //   dataIndex: "onlineSaleNum",
                //   key: "onlineSaleNum",
                //   ellipsis: false
                // },
                // {
                //   title: "激活数量",
                //   dataIndex: "offlineSaleNum",
                //   key: "offlineSaleNum",
                //   ellipsis: false
                // },

            ],

            allCardList: [],
            buyShow: false,
            showBuyBtn: false,
            useVipDiscount: undefined, // 0不使用会员
            // useVipDiscountList:[{name:'使用',id:1,},{name:'不使用',id:0}],
            useVipDiscountList: [],
            cardVipJson: {},
            hasProfitData: false, // 是会员
            inputGoldMax: 1000000000,
            // payRate:0.5,
            hasGoldCount: '',
            inputGoldCountChange: '',
            inputGoldCount: '',
            submitShow: false,
            // cateaaa:[{name:'111'},{name:'订单大幅度发'},{name:'订单大幅度发'},{name:'订单大幅度发'},{name:'434434343'},{name:'65665'},{name:'3454'},{name:'545435'},{name:'654654645'},{name:'76756'},{name:'88888'},{name:'非官方个公分'},{name:'33434345465465'}],
            currentIndex: 0,
            authCodeChange: '',
            authCode: '',
            weightChange: '',
            weight: '',
            oftenText: '设为常用',
            currentTableNumIndex: -1,
            currentEatMethodsIndex: 0,
            currentCardSelectIndex: 1,
            currentOftenUseIndex: -1,
            currentVoucherIndex: -1,
            currenPayMethodsIndex: -1,
            currentBuyCardIndex: 0,
            currentBuyCardPayId: 1,
            currentVipIndex: -1,
            getOftenList: [
                // {id:1,mobile:13333333333},{id:2,mobile:14444444444},{id:3,mobile:15555555555},{id:4,mobile:16666666666}
            ],
            buyCardSelectList: [
                { id: 1, name: '购买' }, { id: 0, name: '暂不购买' }
            ],
            eatMethodsList: [
                { id: 3, name: '堂食' }, { id: 4, name: '外带' }
            ],


            // payMethodsList: [{ id: 1, name: '收款码' }, { id: 6, name: '微信付款码' }, { id: 3, name: '美团' }, { id: 4, name: '抖音' }, { id: 5, name: '其他（须填写具体方式）' }],
            // payMethodsList: [{ id: 6, name: '微信付款码' }, { id: 3, name: '美团' }, { id: 4, name: '抖音' }, { id: 5, name: '其他（须填写具体方式）' }],
            fyproBenefitItemRate: 0, // 金豆折扣
            currentCardRate: 1, // 会员卡折扣
            currentDiscountMoney: 0.00,
            currentLevel1: '',
            currentLevel2: '',
            tempMealList: [],
            tempCurrentAttributeList: [],
            currentAttributeList: [],
            addGuideShow: false,

            storeDeskId: undefined,
            tableNumList: [],
            sureUseSelectPhone: false,
            addShow: false,
            cardPayStatus: 0, // 1用户支付了会员卡  0用户未支付会员卡车
            currentUserSelect: false,
            currentUserInfo: {},
            couponList: [],
            cardTypeList: [],
            couponType: undefined, // 0不使用优惠券
            cardType: undefined,
            payMethods: undefined,
            payMethodsText: '',
            cusPayMethods: '',
            telephone: '', //18663268160
            eatMethodsType: 3,
            car_total_count: 0,
            temp_car_total_count: 0,
            carl_total_price: 0.00,
            onlyShopTotalPrice: 0.00,
            mealList: [

            ],




            frequentlyToastShow: false,
            toastHide: null,
            // selectedRows: [],
            // selectedRowKeys: [],

        };
    },

    computed: {
        // ...mapGetters(["cbStoreId", "cbStoreInfo", "cbUserId", "cbToken"]),


        // dealTableNumList() {
        //     return this.tableNumList.reverse();
        // }
    },

    components: {

    },




   
    methods: {
//         getStorePayTypeList(){
       
//        // var json = JSON.parse(window.localStorage.getItem("cbStoreInfo"));
//        var json = JSON.parse(this.cbStoreInfo);
//          if (!json) {
//            this.$router.replace("/login");
//            return;
//          }
         
//          var jsonParams = {
         
//            storeId: this.cbStoreId, // 是否启用 1启用  2隐藏
//            // status: status // 0 未开始 1 进行中 2已失效 3 未开放 4 已开放
//          };
//          console.log('参数为---',jsonParams);
//          // return this.$message.warning("功能升级，敬请期待");
    
  
//        getStorePayTypeListAPI(jsonParams).then(res => {
//              console.log("getStorePayTypeListAPI数据res为", res);
//              if (res.status != 200) {
//                this.$message.warning(res.msg);
//                return;
//              }
//              this.payMethodsList = [];
//              this.payMethodsList = res.data;
//              this.payMethodsList.unshift({
//                payTypeName: "微信收款码",
//                  id: 6,
//                });

//            });

           
//      },
//         goldExchangeClick(item){
//             console.log('item---',item);
//         // this.currentItem = item;
        
//         this.goldExchangeShow = true;
//       },
//         onSure(){
       
//        if(!this.cardNo){
//          this.$message.warning('请输入卡号');
//          return;
//        }
//        if(!this.cardPassword){
//          this.$message.warning('请输入密码');
//          return;
//        }
//        var jsonParams = {

//        cardNo:this.cardNo,
//        cardPassword:this.cardPassword,
//        rechargeUserId:this.currentUserInfo.user.id
//      };
//      saveRechargeAPI(jsonParams).then(res => {
//        console.log("短数据res为", res);
//        if (res.status != 200) {
//          this.$message.warning(res.msg);
//          return;
//        }
//        this.goldExchangeShow = false;
//        this.$message.success('操作成功');


//      })
//      },
        ticketMachineFunc() {
            this.$router.push("/ticketMachineList");
        },
        mealSettingFunc() {
            this.$router.push("/scanOrderMealList");
        },
//         onRadioChange1(e) {
//             console.log('radio checked', e.target.value);
//             this.currentRadioChecked = !this.currentRadioChecked;
//         },
//         onRadioChange2(e) {
//             console.log('radio checked', e);
//             this.currentRadioIndex = e;
//             this.currentRadioChecked = !this.currentRadioChecked;
//         },
//         chargeVipFunc() {
//             this.requestFunc();

//         },
//         onCropperCancel() {
//             console.log('关闭了----0');
//             this.currentRadioIndex = -1;
//             this.currentCardSelectIndex = 1;
//             this.buyShow = false;
//             //   this.selectedRowKeys = [];
//             // this.selectedRows = [];

//         },
//         handleOk() {



//             // if(!this.selectedRows.length){
//             //     return this.$message.warning('请选择会员卡');
//             // }
//             console.log('fff====currentRadioIndex',this.currentRadioIndex);
//             if (this.currentRadioIndex== -1) {
//                 return this.$message.warning('请选择会员卡');
//             }
//             if (this.currentBuyCardIndex == -1) {
//                 return this.$message.warning('请选择会员卡支付方式');
//             }




//             if (this.currentBuyCardPayId == 1 && !this.authCode) {
//                 return this.$message.warning('请用扫码枪扫用户付款码');
//             }






//             //  this.buyCardId =   this.onlineData[this.currentRadioIndex].id;
//             if (this.currentBuyCardPayId == 16) { // 现金
//                 this.buyCardUseCashFunc();
//             } else { //微信收款码
//                 this.buyCardUseWXFunc();
//             }


//         },
//         buyCardUseCashFunc() {

//             console.log(';fff===', this.onlineData[this.currentRadioIndex]);
//             var jsonParams = {
//                 buyUserId: this.currentUserInfo.user.id,
//                 payType: this.currentBuyCardPayId,
//                 cardId: this.onlineData[this.currentRadioIndex].id,

//             };
//             console.log('现金-参数--', jsonParams);
//             // this.buySunccessAndUpdateDataFunc();
//             // return;
//             storeWebCashierAPI(jsonParams).then(res => {
//                 console.log("res为", res);
//                 if (res.status != 200) {
//                     this.$message.warning(res.msg);
//                     return;
//                 }
//                 this.buySunccessAndUpdateDataFunc();

//             });
//         },

//         buyCardUseWXFunc() {


//             var jsonParams = {
//                 cardId: this.onlineData[this.currentRadioIndex].id,
//                 authCode: this.authCode,
//                 buyUserId: this.currentUserInfo.user.id,

//             };

//             console.log('微信-参数--', jsonParams);
//             // this.buySunccessAndUpdateDataFunc();
        
//             wxBTOCPayForAnnualCardAPI(jsonParams).then(res => {
//                 console.log("wxBTOCPayForAnnualCardAPI数据res为", res);
//                 if (res.status != 200) {
//                     this.$message.warning(res.msg);
//                     return;
//                 }
               
//                 this.buySunccessAndUpdateDataFunc();


//             });
//         },
//         buySunccessAndUpdateDataFunc() {
//             this.$message.success('购买成功');

//             this.showBuyBtn = false;
//             this.onCropperCancel();
//             this.checkFunc(true);
//         },



//         requestFunc() {
//             // var json = JSON.parse(window.localStorage.getItem("cbStoreInfo"));
//             //  var json = JSON.parse(this.cbStoreInfo);
//             // if (!json) {
//             //   this.$router.replace("/login");
//             //   return;
//             // }

//             var jsonParams = {
//                 // pageNum: 1,
//                 // pageSize: 1000,
//                 // managerId: this.cbStoreId,
//                 // status: 0,

//                 // startTime:  '',
//                 // endTime: '',

//                 // name: "",
//                 // id: "",
//                 buyUserId: this.currentUserInfo.user.id,
//                 storeId: this.cbStoreId,
//             };
//             // GETALLANNUALCARDLISTAPI
//             getAllCardListForStoreWebCaisherAPI(jsonParams).then(res => {
//                 console.log("111列表数据res为", res);
//                 if (res.status != 200) {
//                     this.$message.warning(res.msg);
//                     return;
//                 }
//                 this.onlineData = res.data;
//                 this.buyShow = true;

//             });
//         },
//         deleteGuideCarItem(index1, index2, index3) {
//             console.log('aaa删除点击--index1--', index1, '----index2', index2,'----index3',index3);
//             // this.mealList[index1].itemList[index2].count = 0;
//             // this.mealList[index1].itemList[index2].tempCount = 0;

//             // this.mealList = [...this.mealList];

//             this.car_total_count =    this.car_total_count -this.mealList[index1].itemList[index2].realDifferentGuideList[index3].guideCount   ;
//             // this.mealList[index1].itemList[index2].realDifferentGuideList[index3].guideCount = 0;
//             this.mealList[index1].itemList[index2].differentGuideList.splice(index3, 1);
//             this.mealList[index1].itemList[index2].realDifferentGuideList.splice(index3, 1);

//             this.mealList = [...this.mealList];

//             console.log('---mealList---', this.mealList);

//             // var carTotalCount = 0;
//             // for (var i = 0; i < this.mealList.length; i++) { // 计算购物车中的规格商品的个数
//             //     var item1 = this.mealList[i];
//             //     for (var j = 0; j < item1.itemList.length; j++) {
//             //         var item2 = item1.itemList[j];
//             //         if (item1.itemList[j].realDifferentGuideList) {
//             //             for (var k = 0; k < item2.realDifferentGuideList.length; k++) {

//             //                 if (parseInt(item2.unitFlag) != 2) {
//             //                     carTotalCount = carTotalCount + item2.realDifferentGuideList[k].guideCount;
//             //                 } else { // 无论多少千克按1个
//             //                     carTotalCount = carTotalCount + 1;
//             //                 }
//             //             }
//             //             // carTotalCount = carTotalCount + item1.itemList[j].realDifferentGuideList.length;
//             //         }

//             //     }
//             // }


//             // console.log('---carTotalCount---', carTotalCount);
//             // this.car_total_count = carTotalCount;








//             var carTotalPirce = 0;
//             var onlyShopTotalPrice = 0;
//             var totalNoJoinVipPrice = 0;
//             var level1 = index1;
//             var level2 = index2;
//             for (var i = 0; i < this.mealList.length; i++) { // 计算非规格的总价
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2;

//                     if (!item2.realDifferentGuideList || item2.realDifferentGuideList == undefined) {
//                         console.log('----item2.realDifferentGuideList', item2.realDifferentGuideList);
//                         if (item2.unitFlag != 2) {

//                             count2 = item2.count ? item2.count : 0;
//                             console.log('是数量', count2);
//                         } else { // 重量

//                             count2 = item2.customWeight ? item2.customWeight : 0;
//                             console.log('是重量', count2);
//                         }

//                         if (i == level1 && j == level2) { // 当前添加的
//                             console.log('items2----', item2);

//                             // var dealCount = item2.count ? item2.count + 1 : 1;
//                             // var dealCount = item2.count;
//                             var dealCount = count2;
//                             console.log('加上总包装费', item2.packingFee * dealCount);
//                             if (this.eatMethodsType == 4) {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * dealCount + item2.packingFee * dealCount + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * dealCount + item2.packingFee * dealCount;
//                                 }
                                
//                             } else {

//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * dealCount  + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * dealCount;
//                                 }
                               
//                             }
//                             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * dealCount;

//                         } else {
//                             console.log('fdfdfdfd----', item2);
//                             if (this.eatMethodsType == 4) {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * count2  + item2.packingFee * count2 + totalNoJoinVipPrice;
                                    
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//                                 }
                                
//                             } else {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * count2   + totalNoJoinVipPrice;
                                    
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * count2;
//                                 }
                               
//                             }
//                             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;
//                         }
//                     }
//                 }
//             }

//             for (var m = 0; m < this.mealList.length; m++) { // 计算规格的总价
//                 var item1 = this.mealList[m];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2;
//                     if (item2.realDifferentGuideList) {
//                         for (var k = 0; k < item2.realDifferentGuideList.length; k++) {
//                             var item3 = item2.realDifferentGuideList[k];
//                             if (item2.unitFlag != 2) { // 是item2下的
//                                 console.log('jjj--', item3.guideCount);
//                                 count2 = item3.guideCount != undefined ? item3.guideCount : 0; // 取item3
//                                 console.log('a是数量', count2);
//                             } else { // 重量

//                                 // count2 = item2.customWeight ? item2.customWeight : 0;
//                                 // count2 = this.currentGuideWeight ? this.currentGuideWeight : 0;
//                                 count2 = item3.guideCount != undefined ? item3.guideCount : 0; // 取item3
//                                 console.log('a是重量', count2);
//                             }

//                             if (i == level1 && j == level2) { // 当前添加的
//                                 console.log('aitems2----', item2);

//                                 var dealCount = count2;
//                                 console.log('a加上总包装费', item2.packingFee * dealCount);
//                                 if (this.eatMethodsType == 4) {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * dealCount + item2.packingFee * dealCount + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * dealCount + item2.packingFee * dealCount;
//                                     }
                                   
//                                 } else {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * dealCount + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * dealCount;
//                                     }
                                   
//                                 }
//                                 onlyShopTotalPrice = onlyShopTotalPrice + item2.price * dealCount;

//                             } else {
//                                 console.log('afdfdfdfd----', item2);
//                                 if (this.eatMethodsType == 4) {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * count2 + item2.packingFee * count2 + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//                                     }
                                    
//                                 } else {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * count2 + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * count2;
//                                     }
                                   
//                                 }
//                                 onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;
//                             }
//                         }
//                     }



//                 }
//             }



//             // this.carl_total_price = carTotalPirce;
//           this.allTotalNoJoinVipPrice = totalNoJoinVipPrice;
// this.carl_total_price = carTotalPirce + totalNoJoinVipPrice;
//             console.log('aaa当前-0--', this.carl_total_price);



//             this.mealList = [...this.mealList];








//         },


//         deleteCarItem(index1, index2) {
//             console.log('删除点击--index1--', index1, '----index2', index2);
//             this.car_total_count =    this.car_total_count - this.mealList[index1].itemList[index2].count;
//             this.mealList[index1].itemList[index2].count = 0;
//             this.mealList[index1].itemList[index2].tempCount = 0;
         
//             this.mealList = [...this.mealList];


//             // this.mealList[level1].itemList[level2].count = this.mealList[level1].itemList[level2].tempCount;



//             // var carTotalCount = 0;
//             // for (var i = 0; i < this.mealList.length; i++) {
//             //     var item1 = this.mealList[i];
//             //     for (var j = 0; j < item1.itemList.length; j++) {
//             //         var item2 = item1.itemList[j];
//             //         var count2 = item2.count ? item2.count : 0;
//             //         carTotalCount = carTotalCount + count2;



//             //     }
//             // }
         

//             // var carTotalCount = 0;
//             // for (var i = 0; i < this.mealList.length; i++) { // 计算购物车中的规格商品的个数
//             //     var item1 = this.mealList[i];
//             //     for (var j = 0; j < item1.itemList.length; j++) {
//             //         var item2 = item1.itemList[j];
//             //         if (item1.itemList[j].realDifferentGuideList) {
//             //             for (var k = 0; k < item2.realDifferentGuideList.length; k++) {

//             //                 if (parseInt(item2.unitFlag) != 2) {
//             //                     carTotalCount = carTotalCount + item2.realDifferentGuideList[k].guideCount;
//             //                 } else { // 无论多少千克按1个
//             //                     carTotalCount = carTotalCount + 1;
//             //                 }
//             //             }
//             //             // carTotalCount = carTotalCount + item1.itemList[j].realDifferentGuideList.length;
//             //         }

//             //     }
//             // }


//             // console.log('carTotalCount---',carTotalCount);
//             // this.car_total_count = carTotalCount;
//         },
//         clearClick() {
//             console.log('点击了清空');

//             console.log(' this.mealList---', this.mealList);

//             for (var i = 0; i < this.mealList.length; i++) {
//                 var item1 = this.mealList[i];
//                 for (var m = 0; m < item1.itemList.length; m++) {
//                     var item2 = item1.itemList[m];
               
//                     item2.count = 0;
//                     item2.tempCount = 0;
//                     item2.differentGuideList = undefined;
//                     item2.realDifferentGuideList =undefined;
                 
//                 }
//             }
//             this.mealList = [...this.mealList];
//             this.car_total_count = 0;
//             this.currentGuideCount = 0;
//             this.currentGuideWeight = 0;
//             console.log('aaaaathis.mealLis---', this.mealList);

//         },
//         changeInputGoldCount(e) {
//             this.currentInputGold = e.detail.value;
//             console.log('实时监听输入金豆', this.currentInputGold);
//         },
//         finalDealFunc() {


//             if (!this.telephone) {
//                 return this.$message.warning('请输入手机号');
//             }



//             if (!this.sureUseSelectPhone) {
//                 return this.$message.warning('请先查找用户再确认  ');
//             }


//             // this.resetDynamicData();
//             // return;
//             // if(!this.eatMethodsType){
//             //   return this.$message.warning('请选择就餐方式');
//             // }
//             if (this.eatMethodsType == 3 && !this.storeDeskId) {
//                 return this.$message.warning('请选择桌号');
//             }



//             // if(this.couponType==undefined){
//             //   return this.$message.warning('请选择优惠券');
//             // }
//             // if(this.cardType==undefined){
//             //   return this.$message.warning('请选择会员折扣');
//             // }

//             if (this.payMethods == undefined) {
//                 return this.$message.warning('请选择支付方式');
//             }

//             if (this.payMethods == 5 && !this.cusPayMethods) {
//                 return this.$message.warning('请输入具体方式');
//             }

//             if (this.payMethods == 6 && !this.authCode) {
//                 return this.$message.warning('请用扫码枪扫用户付款码');
//             }



//             this.submitOrderFunc();

//         },
//         scrollInit() {
//             // 获取要绑定事件的元素
//             const tab_nav = document.getElementById("tab_nav")
//             var flag; // 鼠标按下
//             var downX; // 鼠标点击的x下标
//             var scrollLeft; // 当前元素滚动条的偏移量
//             tab_nav.addEventListener("mousedown", function(event) {
//                 flag = true;
//                 downX = event.clientX; // 获取到点击的x下标
//                 scrollLeft = this.scrollLeft; // 获取当前元素滚动条的偏移量
//             });
//             tab_nav.addEventListener("mousemove", function(event) {
//                 if (flag) { // 判断是否是鼠标按下滚动元素区域
//                     var moveX = event.clientX; // 获取移动的x轴
//                     var scrollX = moveX - downX; // 当前移动的x轴下标减去刚点击下去的x轴下标得到鼠标滑动距离
//                     this.scrollLeft = scrollLeft - scrollX // 鼠标按下的滚动条偏移量减去当前鼠标的滑动距离
//                     console.log(scrollX)
//                 }
//             });
//             // 鼠标抬起停止拖动
//             tab_nav.addEventListener("mouseup", function() {
//                 flag = false;
//             });
//             // 鼠标离开元素停止拖动
//             tab_nav.addEventListener("mouseleave", function(event) {
//                 flag = false;
//             });
//         },
        cateClick(index) {
            this.currentIndex = index;
        },
//         deleteOftenUseFunc(idx) {
//             var json = JSON.parse(this.cbStoreInfo);
//             if (!json) {
//                 this.$router.replace("/login");
//                 return;
//             }
//             var jsonParams = {
//                 // storeId: this.cbStoreId,
//                 bindId: idx,
//             };
//             // return;
//             deleteStoreBindPhoneAPI(jsonParams).then((res) => {
//                 console.log("res为", res);

//                 if (res.status != 200) {

//                     this.$message.warning(res.msg);
//                     return;
//                 }
//                 this.$message.success('删除成功');
//                 this.getOftenListFunc();


//             });
//         },
//         selectVoucherFunc(index, item) {
//             console.log('哈哈哈', item);

//             if (this.currentVipIndex != -1) {

//                 var text = '优惠券和金豆以及会员折扣只能使用一个';
//                 this.$message.warning(text);

//                 return;
//             }
//             if (this.carl_total_price < item.exceedMoney) {

//                 var text = '满' + item.exceedMoney + '可用';
//                 this.$message.warning(text);

//                 return;
//             }
//             this.couponType = item.udcId;
//             this.currentVoucherIndex = index == this.currentVoucherIndex ? -1 : index;

//             this.currentCardRate = 1; // 置为1，保证折扣只有一个有值
//             this.inputGoldCountChange = ''; // 置为0，保证折扣只有一个有值
//             for (var i = 0; i < this.couponList.length; i++) {
//                 var json = this.couponList[i];

//                 if (json.udcId == parseInt(item.udcId)) {

//                     this.currentDiscountMoney = item.discountsMoney;
//                 }
//             }
//             if (this.currentVoucherIndex == -1) {
//                 this.currentDiscountMoney = 0;

//             }




//         },


//         selectBuyCardFunc(index, item) {
//             this.currentBuyCardIndex = index == this.currentBuyCardIndex ? -1 : index;
//             this.currentBuyCardPayId = item.id;
//             // this.payMethods = item.id;

//             if (this.currentBuyCardPayId == 1) {
//                 console.log('购买会员卡---选择了用户付款码');
//                 this.$nextTick(() => {
//                     this.$refs.authCodeNameBuyCard.focus();
//                 })
//             }


//         },
//         selectPayMethodsFunc(index, item) {
//             this.currenPayMethodsIndex = index == this.currenPayMethodsIndex ? -1 : index;
//             this.payMethods = item.id;
//             this.payMethodsText = item.payTypeName;
//             if (item.id == 6) {
//                 console.log('选择了用户付款码');
//                 this.$nextTick(() => {
//                     this.$refs.authCodeName.focus();
//                 })
//             }


//         },


//         selectVipFunc(index, item) {

//             if (this.currentVoucherIndex != -1) {

//                 var text = '优惠券和金豆以及会员折扣只能使用一个';
//                 this.$message.warning(text);

//                 return;
//             }
//             console.log('oitem=-==', item);
//             this.inputGoldCountChange = ''; // 置为0，保证折扣只有一个有值
//             this.currentDiscountMoney = 0; // 置为0，保证折扣只有一个有值

//             this.currentVipIndex = index == this.currentVipIndex ? -1 : index;
//             this.currentCardRate = this.currentVipIndex == -1 ? 1 : item.name;


//         },
//         cardSelectListFunc(index, item) {
//             this.currentCardSelectIndex = index == this.currentCardSelectIndex ? -1 : index;
//             // this.eatMethodsType = item.id;
//             console.log('currentCardSelectIndex---', this.currentCardSelectIndex, );
//             if (this.currentCardSelectIndex == 0) { // 购买
//                 this.requestFunc();
//                 this.buyShow = true;
//             }

//             // this.telephone = mobile;
//             // this.checkFunc(true);
//         },
        
//         selectEatMethodsFunc(index, item) {
//             if (!this.sureUseSelectPhone) {
//                 return this.$message.warning('请先选择用户');
//             }
//             this.currentEatMethodsIndex = index == this.currentEatMethodsIndex ? -1 : index;
//             this.eatMethodsType = this.currentEatMethodsIndex==-1?'':item.id;
//             console.log('currentEatMethodsIndex---', this.currentEatMethodsIndex, '----eatMethodsType--', this.eatMethodsType);

//             // this.telephone = mobile;
//             // this.checkFunc(true);
//         },
//         selectTableNumFunc(index, item) {
//             if (!this.sureUseSelectPhone) {
//                 return this.$message.warning('请先选择用户');
//             }
//             this.currentTableNumIndex = index == this.currentTableNumIndex ? -1 : index;
//             this.storeDeskId = this.currentTableNumIndex==-1?'':item.id;
//             console.log('currentTableNumIndex---', this.currentTableNumIndex, '---桌号--', this.storeDeskId);

//             // this.telephone = mobile;
//             // this.checkFunc(true);
//         },

//         selectOneOftenFunc(index, mobile) {
//             this.clearClick();
//             this.currentOftenUseIndex = index;
//             this.telephone = mobile;
//             this.checkFunc(true);
//         },
//         getOftenListFunc() {


//             var json = JSON.parse(this.cbStoreInfo);
//             if (!json) {
//                 this.$router.replace("/login");
//                 return;
//             }
//             var jsonParams = {
//                 storeId: this.cbStoreId,
//                 pageNum: 1,
//                 pageSize: 1000,
//             };
//             // return;
//             getStoreBindPhoneListAPI(jsonParams).then((res) => {
//                 console.log("res为", res);

//                 if (res.status != 200) {

//                     this.$message.warning(res.msg);
//                     return;
//                 }
//                 this.getOftenList = res.data;

//             });
//         },
//         addOftenUseFunc(idx) {

//             // if(){
//             //   return;
//             // }
//             var json = JSON.parse(this.cbStoreInfo);
//             if (!json) {
//                 this.$router.replace("/login");
//                 return;
//             }
//             var jsonParams = {
//                 storeId: this.cbStoreId,
//                 bindUserId: idx,
//             };

//             addStoreBindPhoneAPI(jsonParams).then((res) => {
//                 console.log("res为", res);

//                 if (res.status != 200) {

//                     this.$message.warning(res.msg);
//                     return;
//                 }
//                 this.$message.success('已设为常用');
//                 this.getOftenListFunc();
//             });
//         },
//         resetDynamicData() {

//             console.log('resetDynamicData---');

//             this.sureUseSelectPhone = false;



//             this.currentCardRate = 1;
//             this.currentDiscountMoney = 0.00;
//             this.currentLevel1 = '';
//             this.currentLevel2 = '';
//             this.tempMealList = [];
//             this.tempCurrentAttributeList = [];
//             this.currentAttributeList = [];
//             this.addGuideShow = false;
//             this.storeDeskId = undefined;
//             this.addShow = false;
//             this.cardPayStatus = 0; // 1用户支付了会员卡  0用户未支付会员卡车
//             this.cardVipJson = {};
//             this.currentUserInfo = {};
//             this.currentUserSelect = false;
//             this.couponList = [];
//             this.cardTypeList = [];
//             this.couponType = undefined;
//             this.cardType = undefined;
//             this.payMethods = undefined;
//             this.payMethodsText = '';
//             this.cusPayMethods = '';
//             this.telephone = '';
//             this.eatMethodsType = undefined;
//             this.car_total_count = 0;
//             this.carl_total_price = 0.00;
//             this.mealList = [];




//         },
//         click_oneId(index1, index2, currentItem) { // 当前属性行
//             console.log('----', currentItem.id);

//             var tempList = [...this.tempCurrentAttributeList]; // 当前商品的所有属性


//             for (var i = 0; i < tempList.length; i++) {
//                 var twoList = tempList[i];
//                 for (var j = 0; j < twoList.attrValueList.length; j++) {

//                     if (twoList.attrValueList[j].id == currentItem.id) {
//                         if (twoList.attrValueList[j].attrId == currentItem.attrId) {
//                             for (var m = 0; m < twoList.attrValueList.length; m++) { // 遍历当前属性行，将当前属性行的属性全部取消选中
//                                 twoList.attrValueList[m].tempSelect = false;
//                             }
//                             twoList.attrValueList[j].tempSelect = true; // 将当前行的某个属性

//                         }

//                     }
//                 }
//             }


//             this.currentAttributeList = [...tempList];

//             console.log('最新---', this.currentAttributeList);


//         },

//         shopItemClick(index1, index2, item2) {
//             if (!this.sureUseSelectPhone) {
//                 return this.$message.warning('请先选择用户');
//             }
//             console.log('重量ff--',this.mealList[index1].itemList[index2].weight,'===unitFlag=-',parseInt(this.mealList[index1].itemList[index2].unitFlag));
//             console.log('items---', item2);
//             if (this.mealList[index1].itemList[index2].surplusUse <= 0) {
//                 console.log('权益次数为0');
//                 this.$message.warning("该商品剩余权益次数为0");
//                 return;
//             }
//             if (this.mealList[index1].itemList[index2].num == 0&&parseInt(this.mealList[index1].itemList[index2].unitFlag)==1) {
//                 console.log('数量--售罄---不弹框');
//                 this.$message.warning("已售完,请补充库存！");
//                 return;
//             }
            
         
//             if (this.mealList[index1].itemList[index2].weight == 0&&parseInt(this.mealList[index1].itemList[index2].unitFlag)==2) {
//                 console.log('重量--售罄---不弹框');
//                 this.$message.warning("已售完,请补充库存！");
//                 return;
//             }
            
//             this.currentAttributeList = [];
//             this.tempCurrentAttributeList = [];
//             console.log('index1---', index1, '---index2---', index2, 'item2--', item2);

//             this.currentLevel1 = index1;
//             this.currentLevel2 = index2;
//             console.log('aa---', this.currentLevel1, '--bb--', this.currentLevel2);

//             if (item2.dishAttrList != null && item2.num != 0) {
//                 this.currentAttributeList = JSON.parse(JSON.stringify(this.mealList[index1].itemList[index2].dishAttrList));
//                 this.tempCurrentAttributeList = JSON.parse(JSON.stringify(this.mealList[index1].itemList[index2].dishAttrList));
//                 // console.log('currentAttributeList---',this.currentAttributeList);
//                 console.log('currentAttributeList', this.currentAttributeList, '-----tempCurrentAttributeList---', this.tempCurrentAttributeList);
//             }



//             console.log('当前商品的currentAttributeList---', this.currentAttributeList);
//             this.currentGuideCount = 0;
//             this.currentGuideWeight = 0;
//             this.addGuideShow = true;
//             if (parseInt(item2.unitFlag) == 2) {
//                 this.$nextTick(() => {
//                     this.$refs.inputWeightRef.focus();
//                 })
//             }

//         },


//         sureGuideBtn() {
//             console.log('====ff', this.currentGuideWeight);
//             console.log('fgg---', this.currentAttributeList);
//             if (this.currentAttributeList) {
//                 if (this.currentAttributeList.length) {
//                     if (parseInt(this.mealList[this.currentLevel1].itemList[this.currentLevel2].unitFlag) != 2) { // 数量
//                         // if(this.currentAttributeList.length&&!this.currentGuideCount){
//                         //     return this.$message.warning('请选择数量');
//                         // }
//                         if (!this.currentGuideCount) {
//                             return this.$message.warning('请选择数量');
//                         }
//                     } else { // 重量
//                         if (this.currentAttributeList.length) { // 规格
//                             if (!this.currentGuideWeight) {
//                                 return this.$message.warning('请输入重量');
//                             }
//                         } else {
//                             if (!this.mealList[this.currentLevel1].itemList[this.currentLevel2].tempWeight) {
//                                 return this.$message.warning('请输入重量');
//                             }
//                         }

//                     }
//                 }
//             }

//             // 走到这里就确定了某个规格
//             // 然后就讲规格个数添加到某个属性中
//             this.guideDealFunc();

//             if (this.currentAttributeList.length) { //有规格逻辑
//                 console.log('you的------');
//                 this.mealList[this.currentLevel1].itemList[this.currentLevel2].realDifferentGuideList = [...this.mealList[this.currentLevel1].itemList[this.currentLevel2].differentGuideList];
//             }


//             console.log('aaa确定之后-0--', this.mealList);

//             this.addMealFunc(this.currentLevel1, this.currentLevel2);


//             this.clearTempSelectFunc();



//         },

//         guideDealFunc() {
//             // 遍历某个商品的商品的所有属性集合，再遍历某个属性的所有值，如果本次选中的之前存储过，那么数量+1，否则是新的商品商品集合

//             this.mealList[this.currentLevel1].itemList[this.currentLevel2].dishAttrList = [...this.currentAttributeList];


//             console.log('拼接规格--', this.mealList[this.currentLevel1].itemList[this.currentLevel2]);
//             var dishFlavorStr = '';
//             for (var i = 0; i < this.mealList[this.currentLevel1].itemList[this.currentLevel2].dishAttrList.length; i++) { // 某个商品的所有属性集合
//                 var items = this.mealList[this.currentLevel1].itemList[this.currentLevel2].dishAttrList[i];

//                 for (var j = 0; j < items.attrValueList.length; j++) { // 某个属性(多个值)
//                     var subItems = items.attrValueList[j];
//                     if (subItems.tempSelect) {
//                         subItems.select = subItems.tempSelect;
//                         dishFlavorStr = dishFlavorStr + subItems.attrValue + '/';
//                     }
//                 }

//             }
//             if (dishFlavorStr) {
//                 dishFlavorStr = dishFlavorStr.substring(0, dishFlavorStr.length - 1);
//             }


//             //  if(dishFlavorStr==this.mealList[this.currentLevel1].itemList[this.currentLevel2].dishFlavorStr){// 之前存储过相同规格的

//             //  }else{//  之前没有存储过相同规格的
//             //   if(!this.mealList[this.currentLevel1].itemList[this.currentLevel2].differentGuideList){// 没有存储过规格
//             //     if(!this.mealList[this.currentLevel1].itemList[this.currentLevel2].differentGuideList.length){// 没有存储过规格
//             //       this.mealList[this.currentLevel1].itemList[this.currentLevel2].differentGuideList = [];
//             //     }
//             //   }else{

//             //   }
//             //  }

//             if (this.currentAttributeList) {
//                 if (this.currentAttributeList.length) {
//                         if (!this.mealList[this.currentLevel1].itemList[this.currentLevel2].differentGuideList) { // 没有存储过规格
//                             console.log('没有存储过规格');
//                             // if (!this.mealList[this.currentLevel1].itemList[this.currentLevel2].differentGuideList.length) { // 没有存储过规格

//                             var json = { guideName: dishFlavorStr, guideCount: this.currentGuideCount ? this.currentGuideCount : this.currentGuideWeight, unitFlag: this.currentGuideCount ? 1 : 2 }; // 规格数量由输入框控制
//                             this.mealList[this.currentLevel1].itemList[this.currentLevel2].differentGuideList = [];
//                             this.mealList[this.currentLevel1].itemList[this.currentLevel2].differentGuideList.push(json);
//                             // }
//                             // this.guideInputCount = 1;
//                         } else { // 之前存储过规格
//                             var tempAlldifferentGuideList = [...this.mealList[this.currentLevel1].itemList[this.currentLevel2].differentGuideList];
//                             console.log('之前存储过规格');
//                             var hasFind = false;
//                             for (var i = 0; i < tempAlldifferentGuideList.length; i++) { // 遍历所有存储过的规格列表
//                                 var item = tempAlldifferentGuideList[i];
//                                 if (dishFlavorStr == item.guideName) { // 之前存储过相同规格的

//                                     item.guideCount = this.currentGuideCount ? this.currentGuideCount : this.currentGuideWeight;
//                                     console.log('之前存储过相同规格的', dishFlavorStr, '---currentGuideCount--', this.currentGuideCount, '---本次个数', item.guideCount, 'currentGuideWeight', this.currentGuideWeight);
//                                     hasFind = true;
//                                     return;
//                                     // this.guideInputCount = this.guideInputCount;
//                                 } else { // 之前没有存储过相同规格的


//                                 }
//                             }
//                             if (hasFind == false) { // 之前没有存储过相同规格的
//                                 console.log('之前没有存储过相同规格的', dishFlavorStr, '====本次数量', this.currentGuideCount, '====本次重量', this.currentGuideWeight);
//                                 var json = { guideName: dishFlavorStr, guideCount: this.currentGuideCount ? this.currentGuideCount : this.currentGuideWeight, unitFlag: this.currentGuideCount ? 1 : 2 }; // 规格数量由输入框控制
//                                 console.log('当前要存储的json', json);
//                                 this.mealList[this.currentLevel1].itemList[this.currentLevel2].differentGuideList.push(json);
//                             }

//                         }
//                     }
//                 }
//             console.log('临时规格内容', this.mealList);

//             // this.mealList[this.currentLevel1].itemList[this.currentLevel2].dishFlavorStr = dishFlavorStr;

//             // var dishList = dishFlavorStr ? dishFlavorStr.split('/') : [];

//             // console.log('dishFlavorStr--', dishFlavorStr, 'changdu---', dishList, '初始长度', this.mealList[this.currentLevel1].itemList[this.currentLevel2].dishAttrList.length);
//             // if (dishList.length != this.mealList[this.currentLevel1].itemList[this.currentLevel2].dishAttrList.length) {
//             //     this.$message.warning("请补全规格");
//             //     return;
//             // }
//         },
//         clearTempSelectFunc() {
//             console.log('clearTempSelectFunc---');
//             // this.mealList[this.currentLevel1].itemList[this.currentLevel2].dishAttrList = [...this.tempCurrentAttributeList];
//             // this.mealList[this.currentLevel1].itemList[this.currentLevel2].dishAttrList = [];
//             // this.tempCurrentAttributeList = [...this.currentAttributeList];
//             console.log(this.currentLevel1, '--', this.currentLevel2, 'shujuyua--', this.mealList);
//             console.log('清空之前的aaa', this.currentAttributeList, '~~~~', this.tempCurrentAttributeList);

//             if (this.mealList[this.currentLevel1].itemList[this.currentLevel2].dishAttrList) {
//                 for (var i = 0; i < this.mealList[this.currentLevel1].itemList[this.currentLevel2].dishAttrList.length; i++) { // 某个商品的所有属性集合
//                     var items = this.mealList[this.currentLevel1].itemList[this.currentLevel2].dishAttrList[i];

//                     for (var j = 0; j < items.attrValueList.length; j++) { // 某个属性(多个值)
//                         var subItems = items.attrValueList[j];
//                         subItems.tempSelect = false;
//                     }

//                 }
//             }
//             this.addGuideShow = false;


//         },



//         closeGuideBtnClick() {
//             console.log('closeGuideBtnClick---');
//             this.submitShow = false;
//             this.addGuideShow = false;
//             this.clearTempSelectFunc();
//         },
//         hideGuide() {
//             console.log('hideGuide---');
//             this.addGuideShow = false;
//             this.clearTempSelectFunc();
//         },

//         hide() {
//             this.closeBtnClick();
//         },
//         tableNumClick(value) {
//             console.log(value.target.value);
//             this.storeDeskId = value.target.value;
//         },
//         closeBtnClick() {
//             this.addShow = false;
//             this.sureUseSelectPhone = false;
//             this.telephone = '';
//             this.currentOftenUseIndex = -1;
//         },
//         sureUserBtn() {
//             this.sureUseSelectPhone = true;

//             this.addShow = false;
//             // this.resetDynamicData();
//         },

//         // getInfo() {
//         //   var json = JSON.parse(window.localStorage.getItem("cbStoreInfo"));
//         //     // var json = JSON.parse(this.cbStoreInfo);
//         //   if (!json) {
//         //     this.$router.replace("/login");
//         //     return;
//         //   }
//         //   var jsonParams = {
//         //     storeId: json.id,
//         //   };
//         //   console.log("ssssdddd");

//         //   mainPageInfoAPI(jsonParams).then(res => {
//         //     console.log(" ", res);

//         //     if (res.status != 200) {
//         //       this.$message.warning(res.msg);
//         //       return;
//         //     }
//         //     // this.storeInfo = res.data;
//         //     this.couponList = res.data.couponList;

//         //     // this.commentList = res.data.commentList;
//         //     // this.inStoreEvaluateList = res.data.commentList;

//         //     // this.centerShopCateList = res.data.itemCatList2.storeCatList;
//         //     // this.centerShopCateList.unshift({
//         //     //       name: "全部分类",
//         //     //       id: -1
//         //     //     });
//         //     //     this.centerOnSaleList = res.data.itemCatList2.defaultItemList;

//         //   });
//         // },
//         useVipDiscountClick(value) {
//             this.useVipDiscount = value.target.value;
//             console.log('是否用折扣---', this.useVipDiscount);
//         },
//         couponTypeClick(value) {
//             console.log(value.target.value);
//             this.couponType = value.target.value;
//             if (parseInt(value.target.value) == -1) { // 不使用优惠券

//             } else { // 使用优惠券



//                 // console.log('---couponList',this.couponList);


//                 for (var i = 0; i < this.couponList.length; i++) {
//                     var item = this.couponList[i];

//                     if (item.udcId == parseInt(this.couponType)) {

//                         this.currentDiscountMoney = item.discountsMoney;
//                     }
//                 }
//             }
//             this.couponType = value.target.value;

//         },
//         // cardTypeClick(value) {
//         //     console.log(value);
//         //     this.cardType = value.target.value;

//         //     for (var i = 0; i < this.cardTypeList.length; i++) {
//         //         var item = this.cardTypeList[i];

//         //         if (item.id == parseInt(this.cardType)) {

//         //             this.currentCardRate = item.payRate;
//         //         }
//         //     }
//         //     console.log('-++--', this.currentCardRate);
//         // },
//         // payMethodsClick(value) {
//         //     console.log('ddd====', value.target.value);
//         //     console.log(value);
//         //     this.payMethods = value.target.value;
//         //     if (this.payMethods == 6) {
//         //         console.log('选择了用户付款码');
//         //         this.$nextTick(() => {
//         //             this.$refs.authCodeName.focus();
//         //         })
//         //     }
//         // },
//         // eatMethodsClick(value) {
//         //     console.log(value);
//         //     this.eatMethodsType = value.target.value;
//         //     // if(this.eatMethodsType==4){
//         //     var carTotalPirce = 0;
//         //     var onlyShopTotalPrice = 0;
//         //     for (var i = 0; i < this.mealList.length; i++) { // 计算总价
//         //         var item1 = this.mealList[i];
//         //         for (var j = 0; j < item1.itemList.length; j++) {
//         //             var item2 = item1.itemList[j];
//         //             var count2 = item2.count ? item2.count : 0;
//         //             // if(i==level1&&j==level2){// 当前添加的
//         //             //   console.log('aaaaaaaaaaaaaaaaaaaaaaaa');
//         //             //   var dealCount = item2.count?item2.count-1:0;
//         //             //   carTotalPirce = carTotalPirce + item2.price*dealCount + item2.packingFee*dealCount;
//         //             // }else{
//         //             if (this.eatMethodsType == 4) {
//         //                 carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//         //             } else {
//         //                 carTotalPirce = carTotalPirce + item2.price * count2;
//         //             }
//         //             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;

//         //             // }
//         //         }
//         //     }
//         //     this.carl_total_price = carTotalPirce;
//         //     this.onlyShopTotalPrice = onlyShopTotalPrice;


//         //     //   var carTotalPirce = 0;
//         //     //   for(var i = 0;i < this.mealList.length;i++){// 计算总价
//         //     //     var item1 = this.mealList[i];
//         //     //     for(var j = 0;j < item1.itemList.length;j++){
//         //     //       var item2 = item1.itemList[j];
//         //     //       var count2 = item2.count?item2.count:0;
//         //     //       if(i==level1&&j==level2){// 当前添加的
//         //     //         console.log('aaaaaaaaaaaaaaaaaaaaaaaa');
//         //     //         var dealCount = item2.count?item2.count-1:0;
//         //     //         carTotalPirce = carTotalPirce + item2.price*dealCount + item2.packingFee*dealCount;
//         //     //       }else{
//         //     //         carTotalPirce = carTotalPirce + item2.price*count2 +  + item2.packingFee*count2;
//         //     //       }
//         //     //     }
//         //     //  }
//         //     // this.carl_total_price = carTotalPirce;




//         //     // }else{

//         //     // }
//         // },
//         submitClick() {

//             if (!this.sureUseSelectPhone) {
//                 return this.$message.warning('请先选择用户');
//             }
//               if(!this.eatMethodsType){
//               return this.$message.warning('请选择就餐方式');
//             }
//             if (this.eatMethodsType == 3 && !this.storeDeskId) {
//                 return this.$message.warning('请选择桌号');
//             }
//             if (this.hasGoldCount < (this.carl_total_price - this.allTotalNoJoinVipPrice) * this.fyproBenefitItemRate * 100) { // 自己拥有的金豆 小于 本单可用的金豆，就取 自己拥有的金豆作为最大值
//                 this.inputGoldMax = this.hasGoldCount;
//             } else { // 自己拥有的金豆 大于等于 本单可用的金豆，就取 本单可用的金豆作为最大值

//                 this.inputGoldMax = parseInt((this.carl_total_price - this.allTotalNoJoinVipPrice) * this.fyproBenefitItemRate * 100);
//             }



//             console.log('最大输入金豆=---', this.inputGoldMax, '===类型---', typeof(this.inputGoldMax));
//             this.submitShow = true;


//         },


//         checkFunc(tempSureUseSelectPhone) {
//             this.sureUseSelectPhone = tempSureUseSelectPhone;
//             var json = JSON.parse(this.cbStoreInfo);
//             if (!json) {
//                 this.$router.replace("/login");
//                 return;
//             }
//             var jsonParams = {
//                 storeId: this.cbStoreId,
//                 telephone: this.telephone,
//             };

//             checkUserAPI(jsonParams).then((res) => {
//                 console.log("当前用户res为=====", res);

//                 if (res.status != 200) {
//                     this.cardPayStatus = 0;
//                     this.$message.warning(res.msg);
//                     return;
//                 }
//                 if (tempSureUseSelectPhone == false) { // 常用号码，不弹框
//                     this.addShow = true;
//                 }
//                 this.currentUserSelect = true;
//                 this.currentUserInfo = res.data;
//                 this.getUserAssetsGoldFunc();
//                 this.getMyCouponForStoreByTypeFunc();
//                 // this.getCardForTakeawayRecFunc();
//                 this.checkIsBuyStoreAnnualCardFunc();
//                 this.getStoreAndBranchInfoFunc();
//             });
//         },

//         getStoreAndBranchInfoFunc() {


//             var json = JSON.parse(this.cbStoreInfo);
//             if (!json) {
//                 this.$router.replace("/login");
//                 return;
//             }
//             var jsonParams = {
//                 storeId: this.cbStoreId,
//                 employeeId: '',
//                 buyUserId: this.currentUserInfo.user.id,
//             };

//             getStoreAndBranchInfoAPI(jsonParams).then((res) => {
//                 console.log("店铺金豆折扣=====", res);

//                 if (res.status != 200) {

//                     this.$message.warning(res.msg);
//                     return;
//                 }
//                 this.fyproBenefitItemRate = res.data.fyproBenefitItemRate;


//             });
//         },
//         getUserAssetsGoldFunc() {



//             var jsonParams = {
//                 buyUserId: this.currentUserInfo.user.id,
//             };

//             getUserAssetsGoldAPI(jsonParams).then((res) => {
//                 console.log("金豆为=====", res);

//                 if (res.status != 200) {

//                     this.$message.warning(res.msg);
//                     return;
//                 }
//                 this.hasGoldCount = res.data.totalMoney;

//             });
//         },
//         checkIsBuyStoreAnnualCardFunc() {


//             var json = JSON.parse(this.cbStoreInfo);
//             if (!json) {
//                 this.$router.replace("/login");
//                 return;
//             }
//             var jsonParams = {
//                 storeId: this.cbStoreId,
//                 buyUserId: this.currentUserInfo.user.id,
//             };

//             checkIsBuyStoreAnnualCardAPI(jsonParams).then((res) => {
//                 console.log("检查用户是否购买了此店铺会员卡=====", res);

//                 if (res.status != 200) {
//                     console.log('aaa清除----');
//                     this.currentCardSelectIndex = 1;
//                     this.showBuyBtn = true;
//                     if (this.mealList[this.mealList.length - 1].id == 9999) {
//                         this.mealList.splice(this.mealList.length - 1, 1);
//                     }
//                     // this.$message.warning(res.msg);
//                     return;
//                 }
//                 if (res.data) {

//                     this.showBuyBtn = false;
//                     this.getCardListFunc(res.data);
//                     this.getAllCardItemListForOneStoreAppletsFunc();
//                 } else {
//                     this.currentCardSelectIndex = 1;
//                     this.showBuyBtn = true;
//                     console.log('清除----');
//                     if (this.mealList[this.mealList.length - 1].id == 9999) {
//                         this.mealList.splice(this.mealList.length - 1, 1);
//                     }
//                 }


//             });
//         },
//         getCardListFunc(cardId) {
//             var json = JSON.parse(this.cbStoreInfo);
//             if (!json) {
//                 this.$router.replace("/login");
//                 return;
//             }
//             var jsonParams = {
//                 storeId: this.cbStoreId,
//                 cardId: cardId,
//             };

//             getCardListAPI(jsonParams).then((res) => {
//                 console.log("查询可购会员卡列表", res);

//                 if (res.status != 200) {

//                     this.$message.warning(res.msg);
//                     return;
//                 }
//                 //    this.currentCardRate = res.data[0].payRate;
//                 this.cardVipJson = res.data[0];
//                 this.useVipDiscountList = [];
//                 this.useVipDiscountList.push({ name: res.data[0].payRate, id: res.data[0].id });

//             });
//         },
//         getAllCardItemListForOneStoreAppletsFunc() {
//             var json = JSON.parse(this.cbStoreInfo);
//             if (!json) {
//                 this.$router.replace("/login");
//                 return;
//             }
//             var jsonParams = {
//                 storeId: this.cbStoreId,
//                 buyUserId: this.currentUserInfo.user.id,
//             };

//             getAllCardItemListForOneStoreAppletsAPI(jsonParams).then((res) => {
//                 console.log("获取用户在该店铺购买的所有卡的所有商品权益数据=====", res);

//                 if (res.status != 200) {

//                     this.$message.warning(res.msg);
//                     return;
//                 }
//                 this.hasProfitData = true;
//                 // this.mealList.push({itemList: [], name: "会员权益", id: 9999});

//                 console.log('嘻哈---', this.mealList);

//                 if (this.mealList[this.mealList.length - 1].id == 9999) {
//                     this.mealList.splice(this.mealList.length - 1, 1);
//                 }
//                 var tempList = [];
//                 for (var i = 0; i < res.data.length; i++) {
//                     var item = res.data[i];
//                     var json = {};
//                     json.storeCid = 9999;
//                     json.id = item.productId;
//                     json.image = item.productImage;
//                     // json.price = item.originalPrice;
//                     json.price = item.productPrice;
//                     json.realPrice = item.price;
//                     json.title = item.productName;
//                     json.surplusUse = item.surplusUse;
//                     json.surplusUseFixed = item.surplusUse;
//                     json.dishAttrList = item.dishAttrList;
//                     json.differentGuideList = undefined;
//                     json.realDifferentGuideList = undefined;
//                     json.num = item.surplusUse;
//                     tempList.push(json);
//                 }
//                 this.mealList.push({ itemList: tempList, name: "会员权益", id: 9999 });
//                 console.log('最新----', this.mealList);

//             });
//         },
//         getMyCouponForStoreByTypeFunc() {
//             var json = JSON.parse(this.cbStoreInfo);
//             if (!json) {
//                 this.$router.replace("/login");
//                 return;
//             }
//             var jsonParams = {
//                 storeId: this.cbStoreId,
//                 couponType: 1,
//                 userId: this.currentUserInfo.user.id,
//                 token: this.currentUserInfo.token,
//             };



//             let instance = axios.create({});
//             instance({
//                     method: "post",
//                     url: `https://api.feiyang.life/discountCoupon/getMyCouponForStoreByType`,
//                     data: qs.stringify(jsonParams),
//                     headers: {
//                         "Content-Type": "application/x-www-form-urlencoded",
//                     },
//                     timeout: 120000, // 37秒超时时间
//                 })
//                 .then((response) => {
//                     // setTimeout(this.toastHide, 0);
//                     // console.log('ddddddddddd');
//                     // this.cardPayStatus = response.data.status;
//                     this.couponList = response.data.data;
//                     // if(this.couponList.length){
//                     //     var json = {name:'不使用',udcId:0,exceedMoney:0,discountsMoney:0};
//                     //     this.couponList.push(json);
//                     // }
//                     console.log("法对对对结果", JSON.stringify(response));


//                 })
//                 // 解决网络异常，不写如下catch，会在控制台打印报错信息的问题
//                 .catch((error) => {
//                     // setTimeout(this.toastHide, 0);
//                     // this.frequentlyToastShow = false;
//                     console.log("异常了eeeeeeeeeeee", error);
//                 });



//         },

//         // getCardForTakeawayRecFunc() { // 获取外卖店铺推荐会员卡
//         //     var json = JSON.parse(this.cbStoreInfo);
//         //     if (!json) {
//         //         this.$router.replace("/login");
//         //         return;
//         //     }
//         //     var jsonParams = {
//         //         storeId: this.cbStoreId,

//         //     };


//         //     // 获取外卖店铺推荐会员卡
//         //     getCardForTakeawayRecAPI(jsonParams).then((res) => {
//         //         console.log("getCardForTakeawayRecAPIres为", res);

//         //         if (res.status != 200) {
//         //             this.$message.warning(res.msg);
//         //             return;
//         //         }
//         //         this.cardTypeList = [];
//         //         if (res.data) { // 店铺有会员卡
//         //             this.cardVipJson = res.data;

//         //             this.cardTypeList.push({ id: res.data.id, cardName: res.data.name, payRate: res.data.payRate });
//         //             this.checkUserBoughtCardFunc();
//         //         }


//         //     });
//         // },
//         // checkUserBoughtCardFunc() { //  判断是否支付
//         //     var json = JSON.parse(this.cbStoreInfo);
//         //     if (!json) {
//         //         this.$router.replace("/login");
//         //         return;
//         //     }
//         //     var jsonParams = {
//         //         userId: this.currentUserInfo.user.id,
//         //         cardId: this.cardVipJson.id,
//         //         token: this.currentUserInfo.token,
//         //     };

//         //     console.log("最新-dddjson为", jsonParams);
//         //     // return;
//         //     let instance = axios.create({});
//         //     instance({
//         //             method: "post",
//         //             url: `https://api.feiyang.life/userAnnualCard/checkUserBoughtCard`,
//         //             data: qs.stringify(jsonParams),
//         //             headers: {
//         //                 "Content-Type": "application/x-www-form-urlencoded",
//         //             },
//         //             timeout: 120000, // 37秒超时时间
//         //         })
//         //         .then((response) => {
//         //             // setTimeout(this.toastHide, 0);
//         //             // console.log('ddddddddddd');
//         //             this.cardPayStatus = response.data.status;
//         //             console.log("结果", JSON.stringify(response));

//         //         })
//         //         // 解决网络异常，不写如下catch，会在控制台打印报错信息的问题
//         //         .catch((error) => {
//         //             // setTimeout(this.toastHide, 0);
//         //             // this.frequentlyToastShow = false;
//         //             console.log("异常了eeeeeeeeeeee", error);
//         //         });



//         // },



//         submitOrderFunc() {
//             // this.detailImgs = this.formData.content;

//             //       dishFlavor: null
//             // itemId: 22754
//             // num: 1
//             // picPath: "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1687330162614210.png"
//             // price: 3
//             // title: "米饭啊"
//             // totalFee: 3

//             // if(this.payMethods==1){
//             //   this.payMethodsText = '收款码';
//             // }
//             // else if(this.payMethods==2){
//             //   this.payMethodsText = '现金';
//             // }
//             // else 
//             // if (this.payMethods == 3) {
//             //     this.payMethodsText = '美团';
//             // } else if (this.payMethods == 4) {
//             //     this.payMethodsText = '抖音';
//             // } else if (this.payMethods == 5) {
//             //     this.payMethodsText = this.cusPayMethods;
//             // } else if (this.payMethods == 6) {
//             //     this.payMethodsText = '微信付款码';
//             // }

//             // if (this.payMethods == 6) {
//             //     this.payMethodsText = '微信付款码';
//             // }else{

//             // }


//             var dealItems = [];
//             // 如果点击+请求数据的话
//             // 如果点击+不请求数据的话，两个人同时操作+，最后点击加入购物车的话，再次打开这个商品的话，如果显示1的话，就没法删除了。所以
//             for (var i = 0; i < this.mealList.length; i++) { // 计算总价
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var dishFlavorStr = '';
//                     var item2 = item1.itemList[j];
//                     if (item2.count) {
//                         if (item2.dishAttrList) {
//                             for (var m = 0; m < item2.dishAttrList.length; m++) {
//                                 var dishItem = item2.dishAttrList[m];
//                                 if (dishItem.attrValueList) {
//                                     for (var n = 0; n < dishItem.attrValueList.length; n++) {
//                                         var dishValueItem = dishItem.attrValueList[n];
//                                         console.log('ddd--', dishValueItem);
//                                         if (dishValueItem.select) {
//                                             dishFlavorStr = dishFlavorStr + dishValueItem.attrValue + '/';
//                                         }
//                                     }
//                                 }


//                             }
//                         }
//                         if (dishFlavorStr) {
//                             dishFlavorStr = dishFlavorStr.substring(0, dishFlavorStr.length - 1);
//                         }
//                         var json = {};
//                         if (parseInt(item2.unitFlag) != 2) { // 数量
//                             json = {
//                                 dishFlavor: dishFlavorStr,
//                                 itemId: item2.id,
//                                 num: item2.count,
//                                 weight: 0,
//                                 picPath: item2.image,
//                                 price: item2.price,
//                                 title: item2.title,
//                                 totalFee: item2.price * item2.count,
//                                 unitFlag: 1,
//                             };
//                         } else { // 重量
//                             json = {
//                                 dishFlavor: dishFlavorStr,
//                                 itemId: item2.id,
//                                 num: '',
//                                 weight: item2.customWeight,
//                                 picPath: item2.image,
//                                 price: item2.price,
//                                 title: item2.title,
//                                 totalFee: item2.price * item2.count,
//                                 unitFlag: 2,
//                             };
//                         }
//                         dealItems.push(json);
//                         // dealItems.push({
//                         //     dishFlavor: dishFlavorStr,
//                         //     itemId: item2.id,
//                         //     num: item2.count,
//                         //     picPath: item2.image,
//                         //     price: item2.price,
//                         //     title: item2.title,
//                         //     totalFee: item2.price * item2.count,
//                         // });
//                     }

//                     if (item2.realDifferentGuideList) {
//                         if (item2.realDifferentGuideList.length) {
//                             for (var m = 0; m < item2.realDifferentGuideList.length; m++) {
//                                 var item3 = item2.realDifferentGuideList[m];

//                                 var json = {};
//                                 if (parseInt(item2.unitFlag) != 2) { // 数量
//                                     json = {
//                                         dishFlavor: item3.guideName,
//                                         itemId: item2.id,
//                                         num: item3.guideCount,
//                                         weight: 0,
//                                         picPath: item2.image,
//                                         price: item2.price,
//                                         title: item2.title,
//                                         totalFee: item2.price * item3.guideCount,
//                                         unitFlag: 1,
//                                     };
//                                 } else { // 重量
//                                     json = {
//                                         dishFlavor: item3.guideName,
//                                         itemId: item2.id,
//                                         num: '',
//                                         weight: item3.guideCount,
//                                         picPath: item2.image,
//                                         price: item2.price,
//                                         title: item2.title,
//                                         totalFee: item2.price * item3.guideCount,
//                                         unitFlag: 2,
//                                     };
//                                 }
//                                 dealItems.push(json);
//                             }

//                         }
//                     }

//                 }
//             }

//             if (!dealItems.length) {
//                 this.$message.warning('请选择菜品');
//                 return;
//             }



//             // var applyinfoList = [];
//             // for (let i = 0; i < this.applyinfoList.length; i++) {
//             //   applyinfoList.push({
//             //     nickName: this.applyinfoList[i].nickName,
//             //     required: 1,
//             //   });
//             // }

//             // console.log(applyinfoList);
//             var dealList = [];
//             var dealJson = {};

//             // (this.onlyShopTotalPrice.toFixed(2) - this.currentDiscountMoney)*(1 - currentCardRate)).toFixed(2)


//             // cardTypeList
//             var dealOrder = {
//                 storeDeskId: this.storeDeskId == undefined ? '' : this.storeDeskId,
//                 deliveryType: this.eatMethodsType, // 收银台点餐 3堂食   4外带
//                 invitationCode: this.payMethodsText, // 付款方式  
//                 annualCardId: "",
//                 buyerMessage: "",
//                 buyerNick: '',
//                 // cardDiscountAmount: this.cardType?this.carl_total_price*(100 -this.cardVipJson.payRate*100)/100:'',// 26.39
//                 // cardDiscountAmount: ((this.onlyShopTotalPrice.toFixed(2) - this.currentDiscountMoney) * (1 - this.currentCardRate)).toFixed(2),
//                 cardDiscountAmount: ((1 - this.currentCardRate) * this.carl_total_price).toFixed(2),

//                 cityCouponNo: "",
//                 deliveryTime: "",
//                 discountCoupons: [],
//                 goldPrice: this.inputGoldCount ? this.inputGoldCount : '',
//                 isBuyAnnualCard: 0,
//                 orderType: 1,
//                 // payment: this.carl_total_price,
//                 payment: this.carl_total_price.toFixed(2) - this.currentDiscountMoney - this.manDiscountAmount -  this.inputGoldCount / 100 - ((1 - this.currentCardRate) * this.carl_total_price).toFixed(2),
//                 postFee: '',
//                 postType: 1,
//                 remark: "",
//                 storeId: this.cbStoreId,
//                 userDiscountCouponId: this.couponType,
//                 // userId: this.cbUserId,

//                 userId: this.currentUserInfo.user.id,
//                 manDiscountAmount:this.manDiscountAmount,


//             };
//             var dealShip = {
//                 receiverAddress: this.currentUserInfo.user.deviceId,
//                 receiverMobile: this.currentUserInfo.user.phone,
//                 receiverName: this.currentUserInfo.user.realName ? this.currentUserInfo.user.realName : this.currentUserInfo.user.username,
//                 receiverPhone: this.currentUserInfo.user.phone,
//                 receiverZip: "",
//             };
//             dealJson.order = dealOrder;
//             dealJson.items = dealItems;
//             dealJson.ship = dealShip;
//             dealList.push(dealJson);
//             // return
//             var jsonParams = {
//                 // storeId: this.cbStoreId,
//                 // token: this.cbToken,
//                 // userId: this.cbUserId,
//                 token: this.currentUserInfo.token,
//                 // userId: this.currentUserInfo.user.id,
//                 list: dealList,
//             };
//             console.log("数据为", jsonParams);
//             // return;
//             this.frequentlyToastShow = true;
//             this.toastHide = this.$message.loading("处理中....", 0);

//             // PUBLISHSTOREACTIVITYAPI(jsonParams)

//             let instance = axios.create({});
//             instance({
//                     method: "post",
//                     // url: this.payMethods == 6 ? 'https://api.feiyang.life/order/createWxOrderForBTOC' : 'https://api.feiyang.life/order/createChinaumsOrderForCashier',
//                     url: this.payMethods == 6 ? 'https://api.feiyang.life/order/createWxOrderForBTOCSupprotWeight' : 'https://api.feiyang.life/order/createChinaumsOrderForCashierSupprotWeight',

//                     data: jsonParams,
//                     headers: {
//                         "Content-Type": "application/json",
//                         // "Content-Type": "text/plain",
//                     },
//                 })
//                 .then((res) => {
//                     console.log("拿到的为", res);

//                     if (res.data.status !== 200) {
//                         this.$message.warning(res.data.msg);
//                         setTimeout(this.toastHide, 0);
//                         return;
//                     }
//                     if (this.payMethods == 6) {
//                         this.wxBTOCPayForGoodFunc(res.data.data[0].order.id);
//                     } else {
//                         setTimeout(this.toastHide, 0);
//                         this.originalDataFunc();
//                     }
//                     this.submitShow = false;


//                     // this.$router.go(-1);
//                 })
//                 .catch((error) => {
//                     console.log("哈哈哈哈哈哈eeeeeeeeeeee", error);
//                     this.frequentlyToastShow = false;
//                     setTimeout(this.toastHide, 0);
//                 });
//         },
//         originalDataFunc() {
//             this.$message.success("提交成功");
//             this.resetDynamicData();
//             this.getmealListFunc();
//             this.frequentlyToastShow = false;
//         },

//         wxBTOCPayForGoodFunc(idx) {
//             // var json = JSON.parse(window.localStorage.getItem("cbStoreInfo"));
//             var json = JSON.parse(this.cbStoreInfo);
//             if (!json) {
//                 this.$router.replace("/login");
//                 return;
//             }


//             this.authCode = this.authCode.replace(/\r|\n/ig, "");
//             var jsonParams = {
//                 storeId: this.cbStoreId,
//                 orderId: idx,
//                 authCode: this.authCode,
//             };
//             console.log('参数---', jsonParams);
//             // return;
//             wxBTOCPayForGoodsAPI(jsonParams).then((res) => {
//                 console.log("res为", res);
//                 setTimeout(this.toastHide, 0);
//                 if (res.status != 200) {
//                     this.$message.warning(res.msg);
//                     return;
//                 }
//                 this.originalDataFunc();

//             });
//         },


//         addCarGuideMealFunc(level1, level2, level3) {
//             this.mealList[level1].itemList[level2].differentGuideList[level3].guideCount = this.mealList[level1].itemList[level2].differentGuideList[level3].guideCount + 1;
//             this.mealList = [...this.mealList];




//             var carTotalPirce = 0;
//             var onlyShopTotalPrice = 0;
//             var totalNoJoinVipPrice = 0;
//             for (var i = 0; i < this.mealList.length; i++) { // 计算非规格的总价
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2;

//                     if (!item2.realDifferentGuideList || item2.realDifferentGuideList == undefined) {
//                         console.log('----item2.realDifferentGuideList', item2.realDifferentGuideList);
//                         if (item2.unitFlag != 2) {

//                             count2 = item2.count ? item2.count : 0;
//                             console.log('是数量', count2);
//                         } else { // 重量

//                             count2 = item2.customWeight ? item2.customWeight : 0;
//                             console.log('是重量', count2);
//                         }

//                         if (i == level1 && j == level2) { // 当前添加的
//                             console.log('items2----', item2);

//                             // var dealCount = item2.count ? item2.count + 1 : 1;
//                             // var dealCount = item2.count;
//                             var dealCount = count2;
//                             console.log('加上总包装费', item2.packingFee * dealCount);
//                             if (this.eatMethodsType == 4) {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * dealCount + item2.packingFee * dealCount + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * dealCount + item2.packingFee * dealCount;
//                                 }
                                
//                             } else {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * dealCount  + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * dealCount;
//                                 }
                                
//                             }
//                             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * dealCount;

//                         } else {
//                             console.log('fdfdfdfd----', item2);
//                             if (this.eatMethodsType == 4) {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * count2 + item2.packingFee * count2 + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//                                 }
                                
//                             } else {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * count2 + totalNoJoinVipPrice;
//                                 }else{
//                                    carTotalPirce = carTotalPirce + item2.price * count2;
//                                 }
//                             }
//                             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;
//                         }
//                     }
//                 }
//             }

//             for (var i = 0; i < this.mealList.length; i++) { // 计算规格的总价
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2;
//                     if (item2.realDifferentGuideList) {
//                         for (var k = 0; k < item2.realDifferentGuideList.length; k++) {
//                             var item3 = item2.realDifferentGuideList[k];
//                             if (item2.unitFlag != 2) { // 是item2下的
//                                 console.log('jjj--', item3.guideCount);
//                                 count2 = item3.guideCount != undefined ? item3.guideCount : 0; // 取item3
//                                 console.log('a是数量', count2);
//                             } else { // 重量

//                                 // count2 = item2.customWeight ? item2.customWeight : 0;
//                                 // count2 = this.currentGuideWeight ? this.currentGuideWeight : 0;
//                                 count2 = item3.guideCount != undefined ? item3.guideCount : 0; // 取item3
//                                 console.log('a是重量', count2);
//                             }

//                             if (i == level1 && j == level2) { // 当前添加的
//                                 console.log('aitems2----', item2);

//                                 var dealCount = count2;
//                                 console.log('a加上总包装费', item2.packingFee * dealCount);
//                                 if (this.eatMethodsType == 4) {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * dealCount + item2.packingFee * dealCount + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * dealCount + item2.packingFee * dealCount;
//                                     }
                                    
//                                 } else {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * dealCount  + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * dealCount;
//                                     }
                                   
//                                 }
//                                 onlyShopTotalPrice = onlyShopTotalPrice + item2.price * dealCount;

//                             } else {
//                                 console.log('afdfdfdfd----', item2);
//                                 if (this.eatMethodsType == 4) {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * count2 + item2.packingFee * count2 + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//                                     }
                                    
//                                 } else {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * count2  + totalNoJoinVipPrice;
//                                     }else{
//                                          carTotalPirce = carTotalPirce + item2.price * count2;
//                                     }
//                                 }
//                                 onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;
//                             }
//                         }
//                     }



//                 }
//             }



//             // this.carl_total_price = carTotalPirce;
//             this.allTotalNoJoinVipPrice = totalNoJoinVipPrice;
// this.carl_total_price = carTotalPirce + totalNoJoinVipPrice;
//             this.onlyShopTotalPrice = onlyShopTotalPrice;
//             console.log('aaa当前-0--', this.carl_total_price);



//             this.mealList = [...this.mealList];

//             var carTotalCount = 0;
//             for (var i = 0; i < this.mealList.length; i++) { // 先计算购物车中非规格商品的个数
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     // if(parseInt(this.mealList[level1].itemList[level2].unitFlag)==1){// 数量
//                     var count2 = item2.count ? item2.count : 0;
//                     carTotalCount = carTotalCount + count2;
//                     // }else{//  重量

//                     // }
//                 }
//             }
//             for (var i = 0; i < this.mealList.length; i++) { // 计算购物车中的规格商品的个数
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     if (item1.itemList[j].realDifferentGuideList) {
//                         for (var k = 0; k < item2.realDifferentGuideList.length; k++) {
//                             if (parseInt(item2.unitFlag) != 2) {
//                                 carTotalCount = carTotalCount + item2.realDifferentGuideList[k].guideCount;
//                             } else { // 无论多少千克按1个
//                                 carTotalCount = carTotalCount + 1;
//                             }
//                         }
//                         // carTotalCount = carTotalCount + item1.itemList[j].realDifferentGuideList.length;
//                     }

//                 }
//             }


//             console.log('---carTotalCount---', carTotalCount);
//             this.car_total_count = carTotalCount;



//         },
//         addCarMealFunc(level1, level2) {

//             // if(this.eatMethodsType==undefined){
//             //   return   this.$message.warning('请选择堂食还是外带');
//             // }
//             console.log('aaas增加菜');

//             this.car_total_count = this.car_total_count + 1;
     
 



//             console.log('处理前---', this.mealList[level1].itemList[level2].tempCount);

//             // 注意：保证count和tempCount的一致性
//             if (!this.mealList[level1].itemList[level2].count) {

//                 this.mealList[level1].itemList[level2].count = 1;
//                 this.mealList[level1].itemList[level2].tempCount = 1;

//             } else {
//                 this.mealList[level1].itemList[level2].count = this.mealList[level1].itemList[level2].count + 1;
//                 this.mealList[level1].itemList[level2].tempCount = this.mealList[level1].itemList[level2].count;

//             }

//             this.mealList = [...this.mealList];
//             console.log('总个数---', this.car_total_count);

//             console.log('增加菜后', this.mealList);
//             console.log('值为--', this.mealList[level1].itemList[level2].count);



                        
//             var carTotalPirce = 0;
//             var onlyShopTotalPrice = 0;
//             var totalNoJoinVipPrice = 0;
//             for (var i = 0; i < this.mealList.length; i++) { // 计算非规格的总价
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2;

//                     if (!item2.realDifferentGuideList || item2.realDifferentGuideList == undefined) {
//                         console.log('----item2.realDifferentGuideList', item2.realDifferentGuideList);
//                         if (item2.unitFlag != 2) {

//                             count2 = item2.count ? item2.count : 0;
//                             console.log('是数量', count2);
//                         } else { // 重量

//                             count2 = item2.customWeight ? item2.customWeight : 0;
//                             console.log('是重量', count2);
//                         }

//                         if (i == level1 && j == level2) { // 当前添加的
//                             console.log('items2----', item2);

//                             // var dealCount = item2.count ? item2.count + 1 : 1;
//                             // var dealCount = item2.count;
//                             var dealCount = count2;
//                             console.log('加上总包装费', item2.packingFee * dealCount);
//                             if (this.eatMethodsType == 4) {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * dealCount + item2.packingFee * dealCount + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * dealCount + item2.packingFee * dealCount;
//                                 }
                                
//                             } else {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * dealCount  + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * dealCount;
//                                 }
                                
//                             }
//                             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * dealCount;

//                         } else {
//                             console.log('fdfdfdfd----', item2);
//                             if (this.eatMethodsType == 4) {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * count2  +  item2.packingFee * count2 + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//                                 }
                                
//                             } else {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * count2   + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * count2;
//                                 }
                                
//                             }
//                             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;
//                         }
//                     }
//                 }
//             }

//             for (var i = 0; i < this.mealList.length; i++) { // 计算规格的总价
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2;
//                     if (item2.realDifferentGuideList) {
//                         for (var k = 0; k < item2.realDifferentGuideList.length; k++) {
//                             var item3 = item2.realDifferentGuideList[k];
//                             if (item2.unitFlag != 2) { // 是item2下的
//                                 console.log('jjj--', item3.guideCount);
//                                 count2 = item3.guideCount != undefined ? item3.guideCount : 0; // 取item3
//                                 console.log('a是数量', count2);
//                             } else { // 重量

//                                 // count2 = item2.customWeight ? item2.customWeight : 0;
//                                 // count2 = this.currentGuideWeight ? this.currentGuideWeight : 0;
//                                 count2 = item3.guideCount != undefined ? item3.guideCount : 0; // 取item3
//                                 console.log('a是重量', count2);
//                             }

//                             if (i == level1 && j == level2) { // 当前添加的
//                                 console.log('aitems2----', item2);

//                                 var dealCount = count2;
//                                 console.log('a加上总包装费', item2.packingFee * dealCount);
//                                 if (this.eatMethodsType == 4) {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * dealCount  +  item2.packingFee * dealCount + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * dealCount + item2.packingFee * dealCount;
//                                     }
                                   
//                                 } else {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * dealCount + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * dealCount;
//                                     }
                                
//                                 }
//                                 onlyShopTotalPrice = onlyShopTotalPrice + item2.price * dealCount;

//                             } else {
//                                 console.log('afdfdfdfd----', item2);
//                                 if (this.eatMethodsType == 4) {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * count2  + item2.packingFee * count2 + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//                                     }
                                   
//                                 } else {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * count2   + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * count2;
//                                     }
                                   
//                                 }
//                                 onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;
//                             }
//                         }
//                     }



//                 }
//             }



//             // this.carl_total_price = carTotalPirce;
//             this.allTotalNoJoinVipPrice = totalNoJoinVipPrice;
// this.carl_total_price = carTotalPirce + totalNoJoinVipPrice;
//             this.onlyShopTotalPrice = onlyShopTotalPrice;
//             console.log('aaa当前-0--', this.carl_total_price);




//             // this.abcd = this.mealList[level1].itemList[level2].count + '' + new Date().valueOf();// 数据变更，保证数据刷新

//         },

//         minusCarGuideMealFunc(level1, level2, level3) {
//             console.log('guide----jianshao--level1', level1, '----level2---', level2);

//             if (this.mealList[level1].itemList[level2].differentGuideList[level3].guideCount == 1) {
//                 return this.deleteGuideCarItem(level1, level2, level3);



//             } else {
//                 this.mealList[level1].itemList[level2].differentGuideList[level3].guideCount = this.mealList[level1].itemList[level2].differentGuideList[level3].guideCount - 1;
//                 this.mealList = [...this.mealList];
//             }






//             var carTotalPirce = 0;
//             var onlyShopTotalPrice = 0;
//             var totalNoJoinVipPrice = 0;
//             for (var i = 0; i < this.mealList.length; i++) { // 计算非规格的总价
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2;

//                     if (!item2.realDifferentGuideList || item2.realDifferentGuideList == undefined) {
//                         console.log('----item2.realDifferentGuideList', item2.realDifferentGuideList);
//                         if (item2.unitFlag != 2) {

//                             count2 = item2.count ? item2.count : 0;
//                             console.log('是数量', count2);
//                         } else { // 重量

//                             count2 = item2.customWeight ? item2.customWeight : 0;
//                             console.log('是重量', count2);
//                         }

//                         if (i == level1 && j == level2) { // 当前添加的
//                             console.log('items2----', item2);

//                             // var dealCount = item2.count ? item2.count + 1 : 1;
//                             // var dealCount = item2.count;
//                             var dealCount = count2;
//                             console.log('加上总包装费', item2.packingFee * dealCount);
//                             if (this.eatMethodsType == 4) {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * dealCount + item2.packingFee * dealCount + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * dealCount + item2.packingFee * dealCount;
//                                 }
                                
//                             } else {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * dealCount + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * dealCount;
//                                 }
                                
//                             }
//                             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * dealCount;

//                         } else {
//                             console.log('fdfdfdfd----', item2);
//                             if (this.eatMethodsType == 4) {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * count2 + item2.packingFee * count2 + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//                                 }
                               
//                             } else {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * count2 + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * count2;
//                                 }
                               
//                             }
//                             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;
//                         }
//                     }
//                 }
//             }

//             for (var i = 0; i < this.mealList.length; i++) { // 计算规格的总价
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2;
//                     if (item2.realDifferentGuideList) {
//                         for (var k = 0; k < item2.realDifferentGuideList.length; k++) {
//                             var item3 = item2.realDifferentGuideList[k];
//                             if (item2.unitFlag != 2) { // 是item2下的
//                                 console.log('jjj--', item3.guideCount);
//                                 count2 = item3.guideCount != undefined ? item3.guideCount : 0; // 取item3
//                                 console.log('a是数量', count2);
//                             } else { // 重量

//                                 // count2 = item2.customWeight ? item2.customWeight : 0;
//                                 // count2 = this.currentGuideWeight ? this.currentGuideWeight : 0;
//                                 count2 = item3.guideCount != undefined ? item3.guideCount : 0; // 取item3
//                                 console.log('a是重量', count2);
//                             }

//                             if (i == level1 && j == level2) { // 当前添加的
//                                 console.log('aitems2----', item2);

//                                 var dealCount = count2;
//                                 console.log('a加上总包装费', item2.packingFee * dealCount);
//                                 if (this.eatMethodsType == 4) {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * dealCount + item2.packingFee * dealCount + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * dealCount + item2.packingFee * dealCount;
//                                     }
                                   
//                                 } else {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * dealCount + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * dealCount;
//                                     }
                                   
//                                 }
//                                 onlyShopTotalPrice = onlyShopTotalPrice + item2.price * dealCount;

//                             } else {
//                                 console.log('afdfdfdfd----', item2);
//                                 if (this.eatMethodsType == 4) {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * count2 + item2.packingFee * count2 + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//                                     }
                                   
//                                 } else {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * count2 + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * count2;
//                                     }
                                    
//                                 }
//                                 onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;
//                             }
//                         }
//                     }



//                 }
//             }



//             // this.carl_total_price = carTotalPirce;
//             this.allTotalNoJoinVipPrice = totalNoJoinVipPrice;
// this.carl_total_price = carTotalPirce + totalNoJoinVipPrice;

//             this.onlyShopTotalPrice = onlyShopTotalPrice;
//             console.log('aaa当前-0--', this.carl_total_price);



//             this.mealList = [...this.mealList];



//             var carTotalCount = 0;
//             for (var i = 0; i < this.mealList.length; i++) { // 先计算购物车中非规格商品的个数
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     // if(parseInt(this.mealList[level1].itemList[level2].unitFlag)==1){// 数量
//                     var count2 = item2.count ? item2.count : 0;
//                     carTotalCount = carTotalCount + count2;
//                     // }else{//  重量

//                     // }
//                 }
//             }
//             for (var i = 0; i < this.mealList.length; i++) { // 计算购物车中的规格商品的个数
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     if (item1.itemList[j].realDifferentGuideList) {
//                         for (var k = 0; k < item2.realDifferentGuideList.length; k++) {
//                             if (parseInt(item2.unitFlag) != 2) {
//                                 carTotalCount = carTotalCount + item2.realDifferentGuideList[k].guideCount;
//                             } else { // 无论多少千克按1个
//                                 carTotalCount = carTotalCount + 1;
//                             }
//                         }
//                         // carTotalCount = carTotalCount + item1.itemList[j].realDifferentGuideList.length;
//                     }

//                 }
//             }


//             console.log('---carTotalCount---', carTotalCount);
//             this.car_total_count = carTotalCount;







//         },
//         minusCarMealFunc(level1, level2) {
//             console.log('jianshao--level1', level1, '----level2---', level2);
//             // if(this.eatMethodsType==undefined){
//             //   return   this.$message.warning('请选择堂食还是外带');
//             // }
//             this.car_total_count = this.car_total_count - 1;


//             this.mealList[level1].itemList[level2].count = this.mealList[level1].itemList[level2].count - 1;
//             this.mealList[level1].itemList[level2].tempCount = this.mealList[level1].itemList[level2].count;
//             this.mealList = [...this.mealList];





//             console.log('1111减少菜后', this.mealList);
//             console.log('值为--', this.mealList[level1].itemList[level2].count);



//             var carTotalPirce = 0;
//             var onlyShopTotalPrice = 0;
//             var totalNoJoinVipPrice = 0;
//             for (var i = 0; i < this.mealList.length; i++) { // 计算非规格的总价
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2;

//                     if (!item2.realDifferentGuideList || item2.realDifferentGuideList == undefined) {
//                         console.log('----item2.realDifferentGuideList', item2.realDifferentGuideList);
//                         if (item2.unitFlag != 2) {

//                             count2 = item2.count ? item2.count : 0;
//                             console.log('是数量', count2);
//                         } else { // 重量

//                             count2 = item2.customWeight ? item2.customWeight : 0;
//                             console.log('是重量', count2);
//                         }

//                         if (i == level1 && j == level2) { // 当前添加的
//                             console.log('items2----', item2);

//                             // var dealCount = item2.count ? item2.count + 1 : 1;
//                             // var dealCount = item2.count;
//                             var dealCount = count2;
//                             console.log('加上总包装费', item2.packingFee * dealCount);
//                             if (this.eatMethodsType == 4) {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * dealCount + item2.packingFee * dealCount + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * dealCount + item2.packingFee * dealCount;
//                                 }
                                
//                             } else {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * dealCount  + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * dealCount;
//                                 }
                                
//                             }
//                             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * dealCount;

//                         } else {
//                             console.log('fdfdfdfd----', item2);
//                             if (this.eatMethodsType == 4) {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * count2 + item2.packingFee * count2 + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//                                 }
                                
//                             } else {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * count2 +  totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * count2;
//                                 }
                               
//                             }
//                             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;
//                         }
//                     }
//                 }
//             }

//             for (var i = 0; i < this.mealList.length; i++) { // 计算规格的总价
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2;
//                     if (item2.realDifferentGuideList) {
//                         for (var k = 0; k < item2.realDifferentGuideList.length; k++) {
//                             var item3 = item2.realDifferentGuideList[k];
//                             if (item2.unitFlag != 2) { // 是item2下的
//                                 console.log('jjj--', item3.guideCount);
//                                 count2 = item3.guideCount != undefined ? item3.guideCount : 0; // 取item3
//                                 console.log('a是数量', count2);
//                             } else { // 重量

//                                 // count2 = item2.customWeight ? item2.customWeight : 0;
//                                 // count2 = this.currentGuideWeight ? this.currentGuideWeight : 0;
//                                 count2 = item3.guideCount != undefined ? item3.guideCount : 0; // 取item3
//                                 console.log('a是重量', count2);
//                             }

//                             if (i == level1 && j == level2) { // 当前添加的
//                                 console.log('aitems2----', item2);

//                                 var dealCount = count2;
//                                 console.log('a加上总包装费', item2.packingFee * dealCount);
//                                 if (this.eatMethodsType == 4) {

//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * dealCount + item2.packingFee * dealCount + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * dealCount + item2.packingFee * dealCount;
//                                     }
                                   
//                                 } else {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * dealCount + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * dealCount;
//                                     }
                                   
//                                 }
//                                 onlyShopTotalPrice = onlyShopTotalPrice + item2.price * dealCount;

//                             } else {
//                                 console.log('afdfdfdfd----', item2);
//                                 if (this.eatMethodsType == 4) {
                                    
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * count2 + item2.packingFee * count2 + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//                                     }
                                    
//                                 } else {

//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * count2  + totalNoJoinVipPrice;
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * count2;
//                                     }
                                    
//                                 }
//                                 onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;
//                             }
//                         }
//                     }



//                 }
//             }



//             // this.carl_total_price = carTotalPirce;
//             this.allTotalNoJoinVipPrice = totalNoJoinVipPrice;
// this.carl_total_price = carTotalPirce + totalNoJoinVipPrice;
//             this.onlyShopTotalPrice = onlyShopTotalPrice;
//             console.log('aaa当前-0--', this.carl_total_price);

//         },


//         // 点餐系统

//         minusTempMealFunc(level1, level2) {


//             console.log('当前商品规格---', this.currentAttributeList);
//             if (this.currentAttributeList.length) { //有规格逻辑
//                 if (this.currentGuideCount == 0) {
//                     this.$message.warning("数量不能小于0");
//                     return;
//                 }
//                 console.log('临时--减少菜--规格类');
//                 // 必须先添加完规格才可以添加数量，否则构造数据很麻烦
//                 var dishFlavorStr = '';
//                 for (var i = 0; i < this.currentAttributeList.length; i++) {
//                     var items = this.currentAttributeList[i];

//                     for (var j = 0; j < items.attrValueList.length; j++) { // 某个属性(多个值)
//                         var subItems = items.attrValueList[j];
//                         if (subItems.tempSelect) {
//                             dishFlavorStr = dishFlavorStr + subItems.attrValue + '/';
//                         }
//                     }

//                 }
//                 if (dishFlavorStr) {
//                     dishFlavorStr = dishFlavorStr.substring(0, dishFlavorStr.length - 1);
//                 }
//                 console.log('dishFlavorStr---', dishFlavorStr);
//                 var dishList = dishFlavorStr ? dishFlavorStr.split('/') : [];
//                 if (dishList.length != this.currentAttributeList.length) {
//                     return this.$message.warning('请先补全规格');
//                 }
//                 this.currentGuideCount = this.currentGuideCount - 1;
//                 console.log('操作-后，规格数量为', this.currentGuideCount);


//             } else {
//                 console.log('临时--减少菜--非规格类');
//                 if (!this.mealList[level1].itemList[level2].tempCount || this.mealList[level1].itemList[level2].tempCount <= 1) {
//                     this.$message.warning("该区域最少数量为1，请在左侧栏减少");
//                     return;
//                 }

//                 this.mealList[level1].itemList[level2].tempCount = this.mealList[level1].itemList[level2].tempCount - 1;
//                 this.mealList = [...this.mealList];

//                 console.log('减少菜后', this.mealList);
//                 console.log('值为--', this.mealList[level1].itemList[level2].count);
//             }



//         },




//         addTempMealFunc(level1, level2) {
//             console.log('----level1--', level1, '---level2', level2);
//             console.log('----currentLevel1--', this.currentLevel1, '---level2', this.currentLevel2);
//             // console.log('this.mealList[level1].itemList[level2].dishAttrList',this.mealList[level1].itemList[level2].dishAttrList);
//             console.log('currentAttributeList--++', this.currentAttributeList);
//             if (this.currentAttributeList.length) { //有规格逻辑
//                 console.log('临时--增加菜--规格类');
//                 // 必须先添加完规格才可以添加数量，否则构造数据很麻烦
//                 var dishFlavorStr = '';
//                 for (var i = 0; i < this.currentAttributeList.length; i++) {
//                     var items = this.currentAttributeList[i];

//                     for (var j = 0; j < items.attrValueList.length; j++) { // 某个属性(多个值)
//                         var subItems = items.attrValueList[j];
//                         if (subItems.tempSelect) {
//                             dishFlavorStr = dishFlavorStr + subItems.attrValue + '/';
//                         }
//                     }

//                 }
//                 if (dishFlavorStr) {
//                     dishFlavorStr = dishFlavorStr.substring(0, dishFlavorStr.length - 1);
//                 }
//                 console.log('dishFlavorStr---', dishFlavorStr);
//                 var dishList = dishFlavorStr ? dishFlavorStr.split('/') : [];
//                 if (dishList.length != this.currentAttributeList.length) {
//                     return this.$message.warning('请先补全规格');
//                 }
//                 this.currentGuideCount = this.currentGuideCount + 1;
//                 console.log('操作+后，规格数量为', this.currentGuideCount);


//             } else {
//                 console.log('临时--增加菜--非规格类');

//                 // 某个商品总个数
//                 if (!this.mealList[level1].itemList[level2].tempCount) {
//                     this.mealList[level1].itemList[level2].tempCount = 2;
//                 } else {
//                     this.mealList[level1].itemList[level2].tempCount = this.mealList[level1].itemList[level2].tempCount + 1;
//                 }
//                 // this.temp_car_total_count = this.temp_car_total_count ? this.temp_car_total_count + 1 : 2;
//                 // this.mealList[level1].currentTempCount = this.mealList[level1].currentTempCount ? (this.mealList[level1].currentTempCount + 1) : 2;
//                 // console.log('临时-增加--总个数---', this.mealList[level1].currentTempCount);
//                 this.mealList = [...this.mealList];


//                 // console.log('temp_car_total_count---', this.temp_car_total_count);
//                 console.log('增加菜后', this.mealList);

//                 console.log('值为--', this.mealList[level1].itemList[level2].tempCount);

//             }




//         },
//         addMealFunc(level1, level2) {

//             // if(this.eatMethodsType==undefined){
//             //   return   this.$message.warning('请选择堂食还是外带');
//             // }
//             console.log('gggh确认--增加菜');
//             // this.car_total_count = this.temp_car_total_count;
//             console.log('tempCount处理前---', this.mealList[level1].itemList[level2].tempCount);
//             console.log('tempWeight处理前---', this.mealList[level1].itemList[level2].tempWeight);
//             if (!this.currentAttributeList.length) { // 非规格
//                 console.log('非规格');
//                 if (parseInt(this.mealList[level1].itemList[level2].unitFlag) != 2) { // 数量
//                     // 没有临时输入的值或者临时值为1
//                     if (!this.mealList[level1].itemList[level2].tempCount || this.mealList[level1].itemList[level2].tempCount == 1) {

//                         this.mealList[level1].itemList[level2].count = 1;

//                     } else {
//                         this.mealList[level1].itemList[level2].count = this.mealList[level1].itemList[level2].tempCount;

//                     }
//                 } else if (parseInt(this.mealList[level1].itemList[level2].unitFlag) == 2) { // 重量
//                     // 
//                     this.mealList[level1].itemList[level2].customWeight = this.mealList[level1].itemList[level2].tempWeight;
//                     this.mealList[level1].itemList[level2].count = 1;
//                 }
//             }

//             this.mealList = [...this.mealList];
//             console.log('=dd===',this.mealList);
//             // return;
//             var carTotalPirce = 0;
//             var onlyShopTotalPrice = 0;
//             var totalNoJoinVipPrice = 0;
//             for (var i = 0; i < this.mealList.length; i++) { // 计算非规格的总价
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2;

//                     if (!item2.realDifferentGuideList || item2.realDifferentGuideList == undefined) {
//                         console.log('----item2.realDifferentGuideList', item2.realDifferentGuideList);
//                         if (item2.unitFlag != 2) {

//                             count2 = item2.count ? item2.count : 0;
//                             console.log('是数量', count2);
//                         } else { // 重量

//                             count2 = item2.customWeight ? item2.customWeight : 0;
//                             console.log('是重量', count2);
//                         }

//                         if (i == level1 && j == level2) { // 当前添加的
//                             console.log('items2----', item2, '----eatMethodsType--', this.eatMethodsType);

//                             // var dealCount = item2.count ? item2.count + 1 : 1;
//                             // var dealCount = item2.count;
//                             var dealCount = count2;
//                             console.log('加上总包装费', item2.packingFee * dealCount);
//                             if (this.eatMethodsType == 4) {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * dealCount  + item2.packingFee * dealCount + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * dealCount + item2.packingFee * dealCount;
//                                 }
                               
//                             } else {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * dealCount + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * dealCount;
//                                 }
                               
//                             }
//                             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * dealCount;

                            

//                         } else {
//                             console.log('fdfdfdfd----', item2);
//                             if (this.eatMethodsType == 4) {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * count2 + item2.packingFee * count2 + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//                                 }
                              
//                             } else {
//                                 if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                     totalNoJoinVipPrice = item2.price * count2 + totalNoJoinVipPrice;
//                                 }else{
//                                     carTotalPirce = carTotalPirce + item2.price * count2;
//                                 }
                             
//                             }
//                             onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;
//                         }
//                     }
//                 }
//             }
       
//             for (var i = 0; i < this.mealList.length; i++) { // 计算规格的总价
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2;
//                     if (item2.realDifferentGuideList) {
//                         for (var k = 0; k < item2.realDifferentGuideList.length; k++) {
//                             var item3 = item2.realDifferentGuideList[k];
//                             if (item2.unitFlag != 2) { // 是item2下的
//                                 console.log('jjj--', item3.guideCount);
//                                 count2 = item3.guideCount != undefined ? item3.guideCount : 0; // 取item3
//                                 console.log('a是数量', count2);
//                             } else { // 重量

//                                 // count2 = item2.customWeight ? item2.customWeight : 0;
//                                 // count2 = this.currentGuideWeight ? this.currentGuideWeight : 0;
//                                 count2 = item3.guideCount != undefined ? item3.guideCount : 0; // 取item3
//                                 console.log('a是重量', count2);
//                             }

//                             if (i == level1 && j == level2) { // 当前添加的
//                                 console.log('aitems2----', item2);

//                                 var dealCount = count2;
//                                 console.log('a加上总包装费', item2.packingFee * dealCount);
//                                 if (this.eatMethodsType == 4) {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * dealCount + item2.packingFee * dealCount + totalNoJoinVipPrice;
                                     
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * dealCount + item2.packingFee * dealCount;
//                                     }
                                    
//                                 } else {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * dealCount + totalNoJoinVipPrice;
                                     
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * dealCount;
//                                     }
                                   
//                                 }


//                                 onlyShopTotalPrice = onlyShopTotalPrice + item2.price * dealCount;

//                             } else {
//                                 console.log('afdfdfdfd----', item2);
//                                 if (this.eatMethodsType == 4) {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * count2 + item2.packingFee * count2 + totalNoJoinVipPrice;
                                     
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * count2 + item2.packingFee * count2;
//                                     }
                                    
//                                 } else {
//                                     if(parseInt(item2.payRateFlag)==0){// 不参与会员折扣
//                                         totalNoJoinVipPrice = item2.price * count2 + totalNoJoinVipPrice;
                                     
//                                     }else{
//                                         carTotalPirce = carTotalPirce + item2.price * count2;
//                                     }
                                    
//                                 }
//                                 onlyShopTotalPrice = onlyShopTotalPrice + item2.price * count2;
//                             }
//                         }
//                     }



//                 }
//             }


//             this.allTotalNoJoinVipPrice = totalNoJoinVipPrice;
//             // this.carl_total_price = carTotalPirce;
//             this.carl_total_price = carTotalPirce + totalNoJoinVipPrice;
            
//             console.log('allTotalNoJoinVipPrice----', this.allTotalNoJoinVipPrice);


//             this.onlyShopTotalPrice = onlyShopTotalPrice;
//             console.log('55555-aaa当前-0--', this.carl_total_price);



//             this.mealList = [...this.mealList];


//             var carTotalCount = 0;
//             for (var i = 0; i < this.mealList.length; i++) { // 先计算购物车中非规格商品的个数
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     // if(item2.realDifferentGuideList){

//                     // }else{
//                     // if (!item2.realDifferentGuideList || item2.realDifferentGuideList == undefined) {
//                         // if (!item2.realDifferentGuideList.length) {
//                         console.log('---vv--bb-',item2.realDifferentGuideList);
//                         console.log('---item2.count',item2.count);
//                         // if (item2.realDifferentGuideList.length==0) {
//                             var count2 = item2.count ? item2.count : 0;
//                             carTotalCount = carTotalCount + count2;
//                         // }
//                         // }
//                     // }
//                 }
//             }
//             for (var i = 0; i < this.mealList.length; i++) { // 计算购物车中的规格商品的个数
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     if (item1.itemList[j].realDifferentGuideList) { // 规格
//                         for (var k = 0; k < item2.realDifferentGuideList.length; k++) {
//                             if (parseInt(item2.unitFlag) != 2) {
//                                 carTotalCount = carTotalCount + item2.realDifferentGuideList[k].guideCount;
//                             } else { // 无论多少千克按1个
//                                 carTotalCount = carTotalCount + 1;
//                             }

//                         }
//                         // carTotalCount = carTotalCount + item1.itemList[j].realDifferentGuideList.length;
//                     }



//                 }
//             }


//             console.log('---carTotalCount---', carTotalCount);
//             this.car_total_count = carTotalCount;


//             console.log('tempCount处理后---', this.mealList[level1].itemList[level2].tempCount);
//             console.log('tempWeight处理后---', this.mealList[level1].itemList[level2].tempWeight);
//             console.log('增加菜后', this.mealList);
//             console.log('值为--', this.mealList[level1].itemList[level2].count);
         
//             // this.abcd = this.mealList[level1].itemList[level2].count + '' + new Date().valueOf();// 数据变更，保证数据刷新

//         },

//         onShopCategoryChange(value) {
//             console.log("商品分类改变", value);
//         },
//         changeGuideWeightTitle(e, level1, level2) {
//             const { value } = e.target;
//             console.log('value---', value);
//             this.currentGuideWeight = parseInt(value);
//         },
//         changeWeightTitle(e, level1, level2) {
//             // console.log('ee----',e);
//             // return;
//             const { value } = e.target;




//             console.log('value为', value, '===level1--', level1, '===level2--', level2);
//             this.mealList[level1].itemList[level2].tempWeight = parseInt(value);


//             // var carTotalCount = 0;
//             // var carTotalPirce = 0;
//             // for (var i = 0; i < this.mealList.length; i++) {
//             //     var item1 = this.mealList[i];
//             //     for (var j = 0; j < item1.itemList.length; j++) {
//             //         var item2 = item1.itemList[j];
//             //         var count2 = item2.count ? item2.count : 0;
//             //         carTotalCount = carTotalCount + count2;
//             //         carTotalPirce = carTotalPirce + item2.price * count2;


//             //     }
//             // }
//             // console.log('---carTotalCount---', carTotalCount);
//             // this.car_total_count = carTotalCount;
//             // this.carl_total_price = carTotalPirce;
//             // this.mealList = [...this.mealList];
//             // console.log('---mealList---', this.mealList);

//         },
//         changeTitle(e, level1, level2) {
//             // console.log('ee----',e);
//             // return;
//             const { value } = e.target;




//             console.log('value为', value, '===level1--', level1, '===level2--', level2);
//             this.mealList[level1].itemList[level2].count = parseInt(value);
//             // this.mealList[level1].itemList[level2].Calprice = this.mealList[level1].itemList[level2].price*value;

//             var carTotalCount = 0;
//             var carTotalPirce = 0;
//             for (var i = 0; i < this.mealList.length; i++) {
//                 var item1 = this.mealList[i];
//                 for (var j = 0; j < item1.itemList.length; j++) {
//                     var item2 = item1.itemList[j];
//                     var count2 = item2.count ? item2.count : 0;
//                     carTotalCount = carTotalCount + count2;
//                     carTotalPirce = carTotalPirce + item2.price * count2;


//                 }
//             }
//             console.log('---carTotalCount---', carTotalCount);
//             this.car_total_count = carTotalCount;
//             this.carl_total_price = carTotalPirce;
//             this.mealList = [...this.mealList];
//             console.log('---mealList---', this.mealList);
//             // this.attributeList[index].title= value;
//         },
//         getmealListFunc() {
//             // var json = JSON.parse(window.localStorage.getItem("cbStoreInfo"));
//             var json = JSON.parse(this.cbStoreInfo);
//             if (!json) {
//                 this.$router.replace("/login");
//                 return;
//             }
//             var jsonParams = {
//                 storeId: this.cbStoreId,
//             };

//             getStoreClassifyListAndItemForEatPCAPI(jsonParams).then((res) => {
//                 console.log("mealList--res为", res);
//                 this.mealList = res.data.storeCatList;


//                 if (res.status != 200) {
//                     this.$message.warning(res.msg);
//                     return;
//                 }

//             });
//         },





//         getStoreInfoFunc(){
//         var jsonParams = {
//         storeId: this.cbStoreId
//       };

//       GETSTOREINFOAPI(jsonParams).then(res => {
//         console.log("店铺信息es为", res);

//         this.manDiscountFlag = parseInt(res.data.manDiscountFlag);


//       });
//       },


//         getTableNumFunc() {


//             // var json = JSON.parse(window.localStorage.getItem("cbStoreInfo"));
//             var json = JSON.parse(this.cbStoreInfo);
//             if (!json) {
//                 this.$router.replace("/login");
//                 return;
//             }



//             var jsonParams = {
          
//                 storeId: this.cbStoreId,
//                 // status: status // 0 未开始 1 进行中 2已失效 3 未开放 4 已开放
//             };

//             getStoreDeskListForOrderAPI(jsonParams).then(res => {
//                 console.log("getStoreDeskListForOrderAPI列表数据res为", res);
//                 if (res.status != 200) {
//                     this.$message.warning(res.msg);
//                     return;
//                 }

//                 // console.log("defaultKey为", this.defaultKey);
//                 // console.log("类型为", typeof this.defaultKey);

//                 this.tableNumList = res.data.result_list;
//                 this.currentEatMethodsIndex = this.tableNumList.length?0:1;
//                 this.eatMethodsType = this.tableNumList.length?3:4;

//                 // console.log('最终默认页码为',this.allPagination.defaultCurrent);
//             });
//         },
      },

    mounted() {
        // this.scrollInit();

        // this.getTableNumFunc();
        // this.getmealListFunc();
        // this.getOftenListFunc();
        // this.getStoreInfoFunc();
        // this.getStorePayTypeList();


        this.payMethodsList = [{
                "id": 28,
                "storeId": 2151,
                "payTypeName": "aaa",
                "payType": null,
                "status": null,
                "createTime": 1703667827000,
                "remark": null,
                "todayStorePayTypeAmount": null,
                "todayStorePayTypeCount": 0
            },
            {
                "id": 29,
                "storeId": 2151,
                "payTypeName": "bbb",
                "payType": null,
                "status": null,
                "createTime": 1703667830000,
                "remark": null,
                "todayStorePayTypeAmount": null,
                "todayStorePayTypeCount": 0
            },
            {
                "id": 30,
                "storeId": 2151,
                "payTypeName": "ccc",
                "payType": null,
                "status": null,
                "createTime": 1703668215000,
                "remark": null,
                "todayStorePayTypeAmount": null,
                "todayStorePayTypeCount": 0
            }
        ];
        this.payMethodsList.unshift({
            payTypeName: "微信收款码",
            id: 6,
        });

        this.manDiscountFlag = 1;

        var list1 = [{
            "id": 35,
            "storeId": 2151,
            "deskName": "测试桌号",
            "seat": 4,
            "groupId": 20,
            "groupName": "zzz",
            "createTime": 1691471752000,
            "remark": null,
            "shareFlag": "1",
            "openFlag": "1"
        }]


        this.tableNumList = list1;
        this.currentEatMethodsIndex = this.tableNumList.length ? 0 : 1;
        this.eatMethodsType = this.tableNumList.length ? 3 : 4;


        this.getOftenList = [{
            "id": 45,
            "storeId": 2151,
            "userId": 29719,
            "phone": "18663268160",
            "createTime": 1703060875000,
            "remark": null
        }];



      this.mealList = [
            {
                "name": "fff",
                "itemList": [
                    {
                        "id": 22015,
                        "title": "334",
                        "sellPoint": "541",
                        "originalPrice": 6.00,
                        "price": 55.00,
                        "userCardPrice": 38.50,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 6,
                        "saledNum": 0,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1675153327969378.png",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 1,
                        "limitNum": null,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 6,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 22712,
                        "title": "11",
                        "sellPoint": "222",
                        "originalPrice": 22.00,
                        "price": 11.00,
                        "userCardPrice": 7.70,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 33,
                        "saledNum": 0,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1685070246813022.png",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 11,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 7,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 23152,
                        "title": "测试20",
                        "sellPoint": "33",
                        "originalPrice": 1.00,
                        "price": 0.10,
                        "userCardPrice": 0.07,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 22,
                        "saledNum": 3,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1701940647593777.jpeg",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 3,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 5,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 23153,
                        "title": "测试21",
                        "sellPoint": "ff",
                        "originalPrice": 11.00,
                        "price": 2.00,
                        "userCardPrice": 1.40,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 34,
                        "saledNum": 4,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1702018147855558.jpeg",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 43,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 5,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 23154,
                        "title": "测试22",
                        "sellPoint": "测试2",
                        "originalPrice": 12.00,
                        "price": 2.00,
                        "userCardPrice": 1.40,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 4,
                        "saledNum": 21,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1702023675588472.jpeg",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 444,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 6,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 23157,
                        "title": "测试23",
                        "sellPoint": "22",
                        "originalPrice": 1.00,
                        "price": 0.01,
                        "userCardPrice": 0.00,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 0,
                        "saledNum": 2,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1702262581494094.jpeg",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 1,
                        "limitNum": null,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 25,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 23161,
                        "title": "测试商品26",
                        "sellPoint": "3",
                        "originalPrice": 1.00,
                        "price": 2.00,
                        "userCardPrice": 1.40,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 2,
                        "saledNum": 6,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1702281945038157.jpeg",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 4,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 2,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "0",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 23162,
                        "title": "测试商品27",
                        "sellPoint": "卖点",
                        "originalPrice": 1.00,
                        "price": 2.00,
                        "userCardPrice": 1.40,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 3,
                        "saledNum": 33,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1702282336932069.jpeg",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 4,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 1,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": [
                            {
                                "id": 298,
                                "itemId": 23162,
                                "attrName": "规格1、规格2",
                                "attrValueList": [
                                    {
                                        "id": 796,
                                        "attrId": 298,
                                        "attrValue": "22"
                                    },
                                    {
                                        "id": 797,
                                        "attrId": 298,
                                        "attrValue": "33"
                                    }
                                ]
                            }
                        ],
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 23164,
                        "title": "测试商品30",
                        "sellPoint": "测试",
                        "originalPrice": 1.00,
                        "price": 3.00,
                        "userCardPrice": 2.10,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 4,
                        "saledNum": 3,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1702346909113035.jpeg",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 22,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 46,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 23165,
                        "title": "测试商品31",
                        "sellPoint": "测试",
                        "originalPrice": 1.00,
                        "price": 2.00,
                        "userCardPrice": 1.40,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 3,
                        "saledNum": 5,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1702349347250748.jpeg",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 4,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 20,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 23158,
                        "title": "测试24",
                        "sellPoint": "11",
                        "originalPrice": 1.00,
                        "price": 1.00,
                        "userCardPrice": 0.70,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 2,
                        "saledNum": 3,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1702271523448976.jpeg",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 3,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 0,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 23159,
                        "title": "测试25",
                        "sellPoint": "g",
                        "originalPrice": 1.00,
                        "price": 1.00,
                        "userCardPrice": 0.70,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 2,
                        "saledNum": 3,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1702271546188374.jpeg",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 1,
                        "limitNum": null,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 0,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 23163,
                        "title": "商品测试28",
                        "sellPoint": "22",
                        "originalPrice": 1.00,
                        "price": 2.00,
                        "userCardPrice": 1.40,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 1,
                        "saledNum": 57,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1702349634932279.jpeg",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 4,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 0,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 1818,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    }
                ],
                "id": 1818
            },
            {
                "name": "外卖商品类型1",
                "itemList": [
                    {
                        "id": 22714,
                        "title": "美食测试1",
                        "sellPoint": "测试",
                        "originalPrice": 0.02,
                        "price": 0.01,
                        "userCardPrice": 0.00,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 4,
                        "saledNum": 5,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1685352170973081.png",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 1,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 16,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 2878,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": [
                            {
                                "id": 285,
                                "itemId": 22714,
                                "attrName": "辣度",
                                "attrValueList": [
                                    {
                                        "id": 754,
                                        "attrId": 285,
                                        "attrValue": "原味"
                                    },
                                    {
                                        "id": 755,
                                        "attrId": 285,
                                        "attrValue": "微辣"
                                    },
                                    {
                                        "id": 756,
                                        "attrId": 285,
                                        "attrValue": "特辣"
                                    }
                                ]
                            },
                            {
                                "id": 286,
                                "itemId": 22714,
                                "attrName": "温度",
                                "attrValueList": [
                                    {
                                        "id": 757,
                                        "attrId": 286,
                                        "attrValue": "10度"
                                    },
                                    {
                                        "id": 758,
                                        "attrId": 286,
                                        "attrValue": "20度"
                                    },
                                    {
                                        "id": 759,
                                        "attrId": 286,
                                        "attrValue": "50度"
                                    },
                                    {
                                        "id": 760,
                                        "attrId": 286,
                                        "attrValue": "100度"
                                    }
                                ]
                            },
                            {
                                "id": 287,
                                "itemId": 22714,
                                "attrName": "尺寸",
                                "attrValueList": [
                                    {
                                        "id": 761,
                                        "attrId": 287,
                                        "attrValue": "小"
                                    },
                                    {
                                        "id": 762,
                                        "attrId": 287,
                                        "attrValue": "中"
                                    },
                                    {
                                        "id": 763,
                                        "attrId": 287,
                                        "attrValue": "大"
                                    }
                                ]
                            }
                        ],
                        "takeawayFlag": null,
                        "packingFee": 33.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "2",
                        "weight": 6.00,
                        "deviceSn": null,
                        "deviceName": null
                    },
                    {
                        "id": 22728,
                        "title": "ces",
                        "sellPoint": "11",
                        "originalPrice": 11.00,
                        "price": 11.00,
                        "userCardPrice": 7.70,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 2,
                        "saledNum": 55,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1686115842075618.png",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 22,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 0,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 2878,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": [
                            {
                                "id": 288,
                                "itemId": 22728,
                                "attrName": "1",
                                "attrValueList": [
                                    {
                                        "id": 764,
                                        "attrId": 288,
                                        "attrValue": "2"
                                    }
                                ]
                            },
                            {
                                "id": 289,
                                "itemId": 22728,
                                "attrName": "1",
                                "attrValueList": [
                                    {
                                        "id": 765,
                                        "attrId": 289,
                                        "attrValue": "1"
                                    }
                                ]
                            }
                        ],
                        "takeawayFlag": null,
                        "packingFee": 44.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    }
                ],
                "id": 2878
            },
            {
                "name": "灌灌灌灌",
                "itemList": [
                    {
                        "id": 23178,
                        "title": "测试0.01",
                        "sellPoint": "12",
                        "originalPrice": 1.00,
                        "price": 0.01,
                        "userCardPrice": 0.00,
                        "displayCardPriceFlag": true,
                        "postage": 10.00,
                        "num": 12,
                        "saledNum": 33,
                        "barcode": null,
                        "image": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1703323490938356.jpeg",
                        "cid": null,
                        "cname": null,
                        "status": null,
                        "created": null,
                        "updated": null,
                        "typeId": null,
                        "storeId": 2151,
                        "storeName": "烈火家族",
                        "storeType": null,
                        "regionName": "北戴河区",
                        "holdingTime": null,
                        "holdingEndtime": null,
                        "holdingAddress": null,
                        "limitationsState": 2,
                        "limitNum": 3,
                        "distance": null,
                        "itemAttrList": null,
                        "tbAllTagItem": null,
                        "goodsPrice": null,
                        "videoUrl": null,
                        "otherPictureList": null,
                        "clickNum": 11,
                        "promoterRate": null,
                        "benefitItemFlag": null,
                        "itemBuyRecords": null,
                        "benefitCategoryName": null,
                        "benefitCategoryCode": null,
                        "cityBenefitItemFlag": null,
                        "identityFlag": null,
                        "limitRegion": null,
                        "applyStatus": null,
                        "itemDesc": null,
                        "isStoreBail": null,
                        "tagsList": null,
                        "itemCard": null,
                        "storeCid": 3000,
                        "cardProductType": null,
                        "productCode": null,
                        "extendNum": null,
                        "frequency": null,
                        "cycleType": null,
                        "cycleFrequency": null,
                        "cycleFrequencyWeek": null,
                        "cycleFrequencyMonth": null,
                        "cycleFrequencyYear": null,
                        "dishFlavor": null,
                        "dishAttrList": null,
                        "takeawayFlag": null,
                        "packingFee": 0.00,
                        "eatStandards": null,
                        "eatNeed": null,
                        "douyinItemId": null,
                        "meituanItemId": null,
                        "baseSaledNum": null,
                        "payRateFlag": "1",
                        "unitFlag": "1",
                        "weight": 0.00,
                        "deviceSn": null,
                        "deviceName": null
                    }
                ],
                "id": 3000
            }
        ];





    },




};
</script>

<style scoped>
.basic_info_box {
    background-color: #f4f4f4;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
    color: #282828;
    padding-left: 14px;
}

.left_word_box {
    line-height: 40px;
}

.margin_fill {
    display: flex;
    align-items: center;
    margin: 14px 0;
}

.meal_list {
    margin-top: 20px;
}

.cate_meal_box {
    display: flex;
    overflow-x: scroll;
    align-items: center;
    height: 78px;
    border-bottom: 1px solid #f2f2f2;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
}

.unselect_cate_item {
    color: #808080;
    background: #F2F2F2;
    border: 1px solid #F2F2F2;
    justify-content: center;
    display: flex;
    align-items: center;
    margin-right: 20px;
    border-radius: 4px;
    padding: 3px 20px;
    height: 30px;
    color: #000000;
}

.select_cate_item {
    color: #ED6A1F;
    background: rgb(253, 240, 232);
    border: 1px solid #ED6A1F;
    justify-content: center;
    display: flex;
    align-items: center;
    margin-right: 20px;
    border-radius: 4px;
    padding: 3px 20px;
    height: 30px;
    color: #ed6a1f;
}

.require_fill_star {
    font-size: 16px;
    color: #f70e0e;
}

.avatar-uploader>.ant-upload {
    width: 128px;
    height: 128px;
}

.ant-upload-select-picture-card i {
    font-size: 32px;
    color: #999;
}

.ant-upload-select-picture-card .ant-upload-text {
    margin-top: 8px;
    color: #666;
}

.ant-upload-select-picture-card img {
    width: 128px;
    height: 128px;
}

.bottom_save {
    position: absolute;
    left: 200px;
    right: 0;
    margin-top: 26px;
    height: 64px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.attribute_box {
    /* width: 100%; */
}

.attribute_box li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f7f8fa;
    border: solid 1px #d9d9d9;
    height: 63px;
    margin: 10px 0;
    padding: 0 21px;
}

.attribute_content {
    display: flex;
    align-items: center;
    color: #282828;
    font-size: 14px;
}

.right_box {
    display: flex;
    flex-direction: column;
}

.toast_weight_input_border {
    width: 100%;
    border: 1px solid #f2f2f2;
    height: 25px;
    padding: 4px 11px;
}

.toast_input_border {
    /* border: 1px solid #d9d9d9; */
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    height: 25px;
    padding: 4px 11px;
    text-align: center;
}

.input_border {
    /* border: 1px solid #d9d9d9; */
    border: 1px solid transparent;
    height: 25px;
    padding: 4px 11px;
    border-radius: 4px;
    text-align: center;
    /* 
>>>::focus{
border: 1px solid red;
} */
}

input:focus {
    outline: none;
    border: 1px solid #40a9ff;
}

input::-webkit-input-placeholder {
    /* WebKit browsers */
    color: #ccc;
}

input:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #ccc;
}

input::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #ccc;
}

input:-ms-input-placeholder {
    /* Internet Explorer 10+ */
    color: #ccc;
}

.ivu-upload {
    display: none;
}

.el-form-item__content {
    display: none;
}

.frequently_toast_box {
    position: fixed;
    z-index: 3;
    /* width: 500px; */
    /* height: 100%; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
}

.unactive_shop_status {
    text-align: center;
    width: 100px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    margin-left: 14px;
    color: #000000;
}

.active_shop_status {
    text-align: center;
    width: 100px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #1890ff;
    border-radius: 3px;
    margin-left: 14px;
    color: #1890ff;
}

.meal_box {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    /* overflow-x: auto; */
}

.meal_content_box {
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

.saleout {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 60px;
    line-height: 60px;
}

.car_meal_input_ope {
    line-height: 25px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    border: 1px solid #f2f2f2;
    -moz-user-select: none;
    /*火狐*/
    -webkit-user-select: none;
    /*webkit浏览器*/
    -ms-user-select: none;
    /*IE10*/
    -khtml-user-select: none;
    /*早期浏览器*/
    user-select: none;
}

.meal_input_ope {
    display: flex;
    align-items: center;
    -moz-user-select: none;
    /*火狐*/
    -webkit-user-select: none;
    /*webkit浏览器*/
    -ms-user-select: none;
    /*IE10*/
    -khtml-user-select: none;
    /*早期浏览器*/
    user-select: none;
}

.one_ope {
    display: flex;
    justify-content: flex-end;
    line-height: 25px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    margin: 0 12px 13px 12px;
    border: 1px solid transparent;
}

.one_box {
    margin-right: 12px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 13px;
}

.plus_ope {
    height: 25px;
    line-height: 25px;
    margin-right: 12px;
    border-radius: 4px;
    border: 1px solid #f2f2f2;
}

.car_input_ope_left_btn {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-right: 1px solid #f2f2f2;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car_input_ope_right_btn {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-left: 1px solid #f2f2f2;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input_ope_left_btn {
    border: 1px solid #f2f2f2;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input_ope_right_btn {
    border: 1px solid #f2f2f2;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.one_right_btn {
    border-radius: 4px;
    border: 1px solid #f2f2f2;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car_box {
    padding: 0 24px;
}

.car_title_box {
    display: flex;
    justify-content: space-between;
    line-height: 50px;
    padding: 0 24px;
}

.car_column_title {
    display: flex;
    line-height: 40px;
    border-bottom: 1px solid #f2f2f2;
}

.car_shop_cat {
    line-height: 30px;
    /* padding:0 24px; */
}

.car_shop_cont {}

.car_shop_info {
    display: flex;
    align-items: center;
    /* padding:0 24px; */
    padding: 10px 0;
}

.car_cal_price {
    border-top: 1px dashed #f2f2f2;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.total_box {
    display: flex;
    flex-direction: column;
}

.user_box {
    width: 100%;
}

.user_info {
    width: 400px;
    display: flex;
    padding: 14px;
    border: 1px solid #f2f2f2;
    border-radius: 3px;
    align-items: center;
}

.guide_toast_box {
    /* position: absolute; */
    position: fixed;
    z-index: 3;
    /* width: 500px; */
    /* height: 100%; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.toast_box {
    /* position: absolute; */
    position: fixed;
    z-index: 3;
    /* width: 500px; */
    /* height: 100%; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.add_toast_box {
    background-color: white;
    width: 400px;
    /* height: 250px; */
    border-radius: 3px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

.add_top {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 50px;
    background-color: #ED6A1F;
    border-bottom: 1px solid #f2f2f2;
}

.add_bottom {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.add_bottom ul {
    width: 100%;
}

.add_bottom ul li {
    display: flex;
    padding: 14px;
    border: 1px solid #f2f2f2;
    border-radius: 3px;
    justify-content: space-between;
    align-items: center;
    margin: 20px;
}

.select_user_box {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.select_user_box ul {
    width: 100%;
}

.select_user_box ul li {
    display: flex;
    height: 80px;
    width: 330px;
    border: 1px solid #f2f2f2;
    border-radius: 3px;
    justify-content: space-between;
    align-items: center;
    background: #F2F2F2;
    border-radius: 8px;
}

.search_box {
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price_guide_box {
    display: flex;
    justify-content: space-between;
    line-height: 50px;
    padding: 0 12px;
    color: #C1272D;
}

.add_guide_bottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    -moz-user-select: none;
    /*火狐*/
    -webkit-user-select: none;
    /*webkit浏览器*/
    -ms-user-select: none;
    /*IE10*/
    -khtml-user-select: none;
    /*早期浏览器*/
    user-select: none;
}

.add_content_box {
    margin: 12px;
}

.add_content_left_box {
    flex: 1;
    background: white;
}

.add_content_right_box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px;
}

.tan_kuangtwo {
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.num_box {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.tag_tag_box {
    display: flex;
    flex-wrap: wrap;
}

.tag_nei {
    padding: 10px 30px;
    background: #F0F0F0;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 10px;
    display: inline-block;
    margin-right: 8px;
}

.tanactive {
    color: #ED6A1F;
    background: rgb(253, 240, 232);
    border: 1px solid #ED6A1F;
    justify-content: center;
    display: flex;
    align-items: center;
    border-radius: 4px;
    height: 30px;
    padding: 0 20px;
    position: relative;
}

.tanunactive {
    color: #808080;
    background: #F2F2F2;
    border: 1px solid #F2F2F2;
    justify-content: center;
    display: flex;
    align-items: center;
    border-radius: 4px;
    height: 30px;
    padding: 0 20px;
    position: relative;
}

.un_select_eat_item {
    color: #808080;
    background: #F2F2F2;
    border: 1px solid #F2F2F2;
    justify-content: center;
    display: flex;
    align-items: center;
    margin-right: 20px;
    border-radius: 4px;
    width: 80px;
    height: 30px;
    position: relative;
    color: #000000;
}

.select_eat_item {
    color: #ED6A1F;
    background: rgb(253, 240, 232);
    border: 1px solid #ED6A1F;
    justify-content: center;
    display: flex;
    align-items: center;
    margin-right: 20px;
    border-radius: 4px;
    width: 80px;
    height: 30px;
    position: relative;
    color: #ed6a1f;
}

.spe_box {
    display: flex;
}

.check_left {
    display: flex;
    align-items: center;
}

.check_right {}

.eat_methods_box {
    display: flex;
    align-items: center;
}

.table_num_box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.often_mobile_box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.un_select_table_num_item {
    color: #808080;
    background: #F2F2F2;
    border: 1px solid #F2F2F2;
    justify-content: center;
    display: flex;
    align-items: center;
    margin-right: 20px;
    border-radius: 4px;
    height: 30px;
    padding: 0 10px;
    position: relative;
    color: #000000;
    margin-bottom: 13px;
}

.select_table_num_item {
    color: #ED6A1F;
    background: rgb(253, 240, 232);
    border: 1px solid #ED6A1F;
    justify-content: center;
    display: flex;
    align-items: center;
    margin-right: 20px;
    border-radius: 4px;
    height: 30px;
    padding: 0 10px;
    position: relative;
    color: #ed6a1f;
    margin-bottom: 13px;
}

.right_check {
    color: red;
    font-size: 20px;
}

.un_select_mobile_item {
    color: #808080;
    background: #F2F2F2;
    border: 1px solid #F2F2F2;
    line-height: 28px;
    padding-left: 14px;
    padding-right: 14px;
    display: flex;
    align-items: center;
    margin-right: 20px;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-bottom: 10px;
    color: #808080;
}

.select_mobile_item {
    color: #ED6A1F;
    background: rgb(253, 240, 232);
    border: 1px solid #ED6A1F;
    line-height: 28px;
    padding-left: 14px;
    padding-right: 14px;
    display: flex;
    align-items: center;
    margin-right: 20px;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-bottom: 10px;
    color: #ed6a1f;
}

.un_select_normal_item {
    color: #808080;
    background: #F2F2F2;
    border: 1px solid #F2F2F2;
    line-height: 28px;
    padding-left: 14px;
    padding-right: 14px;
    display: flex;
    align-items: center;
    margin-right: 20px;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-bottom: 10px;
    color: #000000;
}

.select_normal_item {
    color: #ED6A1F;
    background: rgb(253, 240, 232);
    border: 1px solid #ED6A1F;
    line-height: 28px;
    padding-left: 14px;
    padding-right: 14px;
    display: flex;
    align-items: center;
    margin-right: 20px;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-bottom: 10px;
    color: #ed6a1f;
}

/* .cus_radio {
  /deep/ .ant-radio-wrapper {
      margin-bottom: 20px;
  }
} */

.sale_out_img {
    position: absolute;
    width: 90px;
    height: 90px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.meal_img_box {
    position: relative;
}

.meal_all_box {
    display: flex;
}

.meal_left_box {
    width: 600px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.meal_top_box {
    background: white;
    padding: 24px;
}

.meal_bottom_box {
    margin-top: 6px;
    background: white;
}

.meal_right_box {
    width: 1px;
    padding: 0 20px;
    flex: auto;
    background: white;
    border-left: 5px solid #f2f2f2;
}

/* 清空滚动条 */

::-webkit-scrollbar {
    display: none;
}

#tab_nav {
    overflow-x: auto;
    overflow-y: hidden;
}

.shop_title {
    height: 50px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
}

.title_de {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.settle_item_box {
    padding: 20px 0;
}

.width_138 {
    display: inline-block;
    width: 138px;
}

.cle-box {}

.line_header_14 {
    color: #000000;
}

.line_header_18 {
    color: #000000;
    font-size: 18px;
    font-weight: 700;
}

.add_choice_bottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    -moz-user-select: none;
    /*火狐*/
    -webkit-user-select: none;
    /*webkit浏览器*/
    -ms-user-select: none;
    /*IE10*/
    -khtml-user-select: none;
    /*早期浏览器*/
    user-select: none;
    margin-bottom: 12px;
}

.choice_btn {
    background: #ED6A1F;
    color: white;
    width: 170px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast_weight_input {
    width: 100%;
    height: 36px;
    border: 1px solid #f2f2f2;
    /*火狐*/
    -webkit-user-select: none;
    /*webkit浏览器*/
    -ms-user-select: none;
    /*IE10*/
    -khtml-user-select: none;
    /*早期浏览器*/
    user-select: none;
}

.toast_count_input {
    width: 50px;
    height: 36px;
    border-top: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
    /*火狐*/
    -webkit-user-select: none;
    /*webkit浏览器*/
    -ms-user-select: none;
    /*IE10*/
    -khtml-user-select: none;
    /*早期浏览器*/
    user-select: none;
}

.textarea_bg {
    background: #f2f2f2;
}

/* 
/deep/ textarea {
  background: #f2f2f2;
  color: #999999;
}

/deep/ .input_par input {
  background: #f2f2f2;
  color: #999999;
  height: 41px;
} */

.add_all_box {
    display: flex;
    justify-content: space-between;
    background: rgb(230, 230, 230);
    padding: 10px;
}

.color_000 {
    color: #000000;
}

.color_8080 {
    color: #808080;
}

.choice_sure {
    flex: 1;
    background-color: #fe6a24;
    height: 48px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
}

.choice_cancel {
    flex: 1;
    background-color: #808080;
    height: 48px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    margin-right: 20px;
}

.toast_choice {
    width: 100%;
    display: flex;
    align-items: center;
}

.right_top_box {}

.color_999 {
    color: #999999;
}

.card_select_ul {
    display: flex;
    flex-direction: column;
    width: 752px;
}

.card_select_li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    border-bottom: 1px solid #e8e8e8;
}

.card_select_li div {
    flex: 1;
    text-align: center;
}

.gold_box {
    display: flex;
    flex-direction: column;
}

.toast_container_box {
    display: flex;
    align-items: center;
}

.mg24 {
    margin-top: 24px;
}
</style>
